Code used in the book Python Game Programming By Example by Alejandro Rodas de Paz, and Joseph Howse
Breakout implemented with Tkinter natively available with Python
Space invaders implemented with the Cocos2d package
- Arrow keys to move
- Space to shoot
- Moved collision logic from Actor to GameLayer
- Added bunkers
- Added tests
A tower defense game implemented with the Cocos2d package, the map is created using Tiled
- Change directory to a game folder e.g.
$cd CocosInvaders
- Create a virtual environment
$python -m venv venv
- Activate the virtual environment
$venv\Scripts\activate.bat
- Install the game's dependencies
$pip install -r dependencies.txt
- Run the main application e.g.
$python main.py
- Change directory to a game folder
- Run the test
python -m unittest discover