Skip to content

omkero/Astro-Ship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPLv3 License

Astro Ship

Astro Ship is a simple Asteroid Destroyer Game using C/C++ with SDL2 library

Features

  • 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.

📦 Installation & Build Instructions

1️⃣ Prerequisites

Make sure you have the following installed:

  • C++17 or later
  • SDL2 (lateset version)
  • CMake 3.14+

2️⃣ Clone the Repository

git clone https://github.com/omkero/Astro-Ship.git

3️⃣ Install Required SDL2 libraries

On Windows, SDL2 libraries should be located in lib/x64, and CMake will automatically link them to the executable.

(Linux Only)

sudo apt-get install libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev

4️⃣ Build and run Using CMake

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

Run on Windows

./build/Release/astro_ship.exe

Run on Linux

./build/astro_ship 

🤝 Contributions

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.

Enjoy the game!

📝 License This project is open-source and available under the GPL3 License.

Let me know if you need any more adjustments 😃!

About

Asteroid Destroyer SDL2 library

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages