A Python-based clone of the classic Space Invaders, developed using Pygame.
This version adds background music, sound effects, multiple enemies, collision detection, and a “Press ENTER to Play Again” feature after Game Over.
- 🎨 Smooth 2D graphics using Pygame
- 🎵 Background music and sound effects (laser, explosion)
- 👾 Multiple enemies with randomized movement
- 🚀 Player movement in both X and Y directions
- 🔫 Bullet firing and collision detection
- 💀 Game Over screen with score display
- 🔁 Press Enter to restart the game instantly
| Action | Key |
|---|---|
| Move Left | ← (Left Arrow) |
| Move Right | → (Right Arrow) |
| Move Up | ↑ (Up Arrow) |
| Move Down | ↓ (Down Arrow) |
| Fire Bullet | Spacebar |
| Restart After Game Over | Enter (Return) |
Inside your project folder (where main.py is), open the terminal and run:
git clone https://github.com/<your-username>/Space-Invader-Pygame.git
cd Space-Invader-Pygameuv syncuv run python main.pypython -m mainuv sync