This is a simple but functional retro space shooter written in Python using the Pygame library. It makes use of some interesting practices that you could potentially use in your own game, including:
- State machine for navigating between games states and passing/persisting data between them
- Use of "spritesheets" to quickly load sprite data from a single file
- Simple menu system for selecting/navigating the game
- Game control using keyboard or joystick/gamepad
- Frame independence using "delta time" in animations
The game's graphics are bespoke (with Galaga style enemies) but sounds and music are download from Freesound. The individual files have retained original filenames with id and user for reference and attribution.
The game is designed to work with Python 3 and can be downloaded and configured using the following from a command prompt:
pip install virtualenv
git clone https://github.com/kadraman/galaxy-blast.git
cd galaxy-blast
python -m venv dev
source dev/bin/activate
pip install -r requirements.txt
python main.py
The game play should be recognisable - simply kill as many enemies as possible (as many times as possible) before you loose all of your lives! There are a number of enemies which move and attack in different ways and are worth different points:
- 1 point - 2 points - 5 points - 10 points (watch those mines) - 25 points (takes a few hits)
There's also an extra 50 points for completing a wave!
Enjoy!!
"kadraman"