๐ฎ A modern, feature-rich Space Invaders remake for Windows console (C++).
Defend the Earth from waves of alien invaders, survive as long as you can, and climb the leaderboard!
- Classic Space Invaders gameplay with modern upgrades
- Multiple difficulty levels (Normal/Hard)
- ASCII art, colored UI, and smooth animation
- Barriers to shield your spaceship
- Enemy and spaceship bullets, enemy AI, random events
- Persistent leaderboard (scores saved to
leaderboard.txt) - Pause menu, How-to-Play screen, and cool Game Over animation
- Highly optimized for Windows console (uses WinAPI)
- Custom player names & easy to extend
- A / Left Arrow: Move spaceship left
- D / Right Arrow: Move spaceship right
- Spacebar: Shoot
- ESC: Pause the game
- Enter: Select menu item
- Destroy all enemies to win. Donโt let your lives reach zero!
- In Hard mode, you only have one life. Good luck!
| Enemy Type | Score |
|---|---|
| Third Row | 10 |
| Second Row | 20 |
| First Row | 30 |
| Spaceship | 75-200 (random) |
- Scores and player names are saved to leaderboard.txt in the game directory.
- Only the highest score per player is kept.
- View the leaderboard anytime from the main menu.
Q: The console window is too small / not centered! A: The game auto-resizes the console, but you can maximize it manually if needed.
Q: My score isnโt saving! A: Make sure you have write permission in the game folder. Check for leaderboard.txt.
Q: The graphics look weird! A: Make sure you run it in Windowsโ default console. Custom or non-standard terminals may not render correctly.
Q: Can I add more levels or enemies? A: Absolutely! The code is organized for easy extension. Add more enemy types, adjust patterns, or create new modes.
๐ Credits @MRL0R3 , @mutecopies (main developers)
Classic arcade inspiration: Tomohiro Nishikadoโs Space Invaders (1978)
This project is licensed under the MIT License.
Feel free to use, modify, and share!
- Windows OS
- g++ (MinGW) or Visual Studio or any C++ compiler supporting Windows headers
- Clone the repository:
git clone https://github.com/your-username/space-invaders-cpp.git cd space-invaders-cpp