This is a simple implementation of the classic Space Invaders game built using the Raylib library in C++. It was developed as a learning project to explore game development and the fundamentals of 2D graphics.
- Classic Arcade Gameplay: Control a spaceship to shoot down waves of invaders.
- High Scores: Keep track of your best scores across sessions.
- Smooth Controls: Responsive movement and shooting mechanics.
- Retro Aesthetic: Simple graphics reminiscent of the original arcade game.
- Movement: Use the LEFT and RIGHT arrow keys to move your spaceship.
- Shooting: Press the SPACE bar to shoot lasers at the invading enemies.
- Objective: Destroy all invaders before they reach the bottom of the screen.
This project is provided as a standalone executable and does not require an installer.
- Download the SpaceInvadersDistributable folder.
- Run the
main.exein the folder on your Windows machine.
Note: No additional dependencies are required. The game is designed to run on any standard Windows system.
If you'd like to compile the game from source, you'll need:
- Raylib library installed
- A C++ compiler (such as MinGW or MSVC)
To compile the game yourself, follow these steps:
- Install the Raylib library.
- Use your preferred C++ compiler (e.g., g++, clang++).
- Compile the source code along with Raylib dependencies.
This project was inspired by a YouTube tutorial from the channel "Programming With Nick," which provided valuable guidance on building retro games. Huge thanks to the tutorial creator for the helpful insights and inspiration!
Special thanks to the Raylib community and contributors for providing such a powerful, easy-to-use game development library.
- Raylib: https://www.raylib.com/
- YouTube Tutorial: Programming With Nick
This project is released under the MIT License and is intended for educational purposes. Feel free to use and modify the code for personal projects. Please credit the original tutorial author if you share it publicly.