A classic space shooter game built with Pygame. Defend Earth from alien fleets and achieve the highest score!
- Python 3.7+
- Pygame 2.1.2+
- Clone/download the repository
- Install dependencies:
pip install pygamepython alien_invasion.py| Key | Action |
|---|---|
| ← → | Move spaceship left/right |
| SPACE | Toggle auto-fire (hold to shoot) |
| P | Pause/Unpause game |
| ENTER | Start new game |
| Q | Quit game (saves high score) |
- 🚀 Progressive difficulty: Speed increases with each level
- 💥 Explosion effects for alien/ship destruction
- 🔊 Sound effects and background music
- 🌟 Starry animated background
- 🏆 Persistent high score tracking
- ⏸️ Pause functionality
- If sounds don't play:
- Ensure
.wav/.oggfiles exist insounds/ - Check system volume/mute status
- Ensure
- If missing images:
- Verify ship and alien images exist in
images/
- Verify ship and alien images exist in
- On Linux systems, install SDL dependencies:
sudo apt-get install python3-dev libsdl2-dev libsdl2-image-dev libsdl2-mixer-devDestroy alien waves, survive as long as possible, and top the leaderboard! 👾🛸
