Astro Ship is a simple Asteroid Destroyer Game using C/C++ with SDL2 library
- Infinite Asteroid Generation – The game continuously spawns asteroids, ensuring endless gameplay.
- Dynamic Difficulty Scaling – As your score increases, the game becomes progressively harder.
- Pause Anytime – You can pause and resume the game at any moment.
Make sure you have the following installed:
- C++17 or later
- SDL2 (lateset version)
- CMake 3.14+
git clone https://github.com/omkero/Astro-Ship.git
On Windows, SDL2 libraries should be located in lib/x64, and CMake will automatically link them to the executable.
sudo apt-get install libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev
Before running the game, make sure to copy the assets/ folder and place it in the same directory as the executable. Otherwise, the game will not run correctly.
cd Astro-Ship
cmake -S . -B build/
cmake --build build/ --config Release
./build/Release/astro_ship.exe
./build/astro_ship
I welcome any contributions! Feel free to fork the repository, make improvements, and submit a pull request. Whether it's bug fixes, new features, or performance optimizations, all contributions are appreciated.
📝 License This project is open-source and available under the GPL3 License.
Let me know if you need any more adjustments 😃!