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.
- 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)
- 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
- 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.
- Python programming : Eric Kernin
- Release : Clément Beudot