What's your batting average? Find out with this terminal version of the arcade classic. The goal is simple. Just bat the ball at the blricks until there are none left. If you miss the ball the game is over.
Make sure you have Python 3.8.0 or newer and raylib-py.
python3 -m pip install raylib-py
After you've installed the required libraries, open a terminal and browse to the project's root folder. Start the program by running the following command.
python3 08-batter
You can also run the program from an IDE like Visual Studio Code. Start your IDE and open the project folder. Select the main module inside the hunter folder and click the "run" icon.
The project files and folders are organized as follows:
root (project root folder)
+-- batter (source code for game)
+-- game (specific game classes)
+-- __init__.py (python package file)
+-- __main__.py (entry point for program)
+-- README.md (general info)
- Python 3.8.0
- Raylib-py