snooker-python-hg2
snooker-python-hg2 copied to clipboard
Snooker is a simple game that was programmed in Python using the HARFANG 3D framework
Snooker 3D simulation in Python
Snooker is a simple game that was programmed in Python using the HARFANG 3D framework.
This project implements the simplest possible gameplay loop, relying on the Bullet physics engine for the most complex part of the simulation. This project can be used as a basis for the development of a more complex gameplay, or for AI training by plugging directly into the code that manages the game interactions.
How to run the Snooker ?
The easy way
- Download the Windows release (Snooker.Release.HG.3.2.0.zip)
- Unzip it in a local folder
- Double click on
2-start_game.bat
if you run the game on a low-end machine - Double click on
2bis-start_game - AAA quality.bat
if you run the game on a high-end machine with a discrete GPU (GeForce GTX850 or above)
Using your own Python interpreter
- Get Python 3
- Get HARFANG 3D
- Either download it from the HARFANG website and follow the install instructions
- Or, using PIP in the command line, type 'pip install -Iv harfang==3.2.0'
- Clone/download this repository
- run python main.py to launch the game
- run python main.py --aaa to launch the game with AAA quality
How to play ?
- Click on one of the 3 balls with the
left mouse button
. - Aim by moving the mouse on the
horizontal axis
. - Shoot with the
left mouse button
. - To reset the game, press the
right mouse button
. - Press
ESC
to quit.
Credits
- Python programming : Eric Kernin
- Release : Clément Beudot
Screenshots