A fast-paced, 2D space shooter game built with C++ and SFML 3! Control your spaceship, blast through incoming asteroids, and survive for as long as possible while racking up points.
- Dynamic Asteroids (Enemies): Asteroids spawn with variable sizes. Larger asteroids have more health and take more hits to destroy.
- Hit Reactions: Watch the asteroids flash red and visually break apart (shrink) as you blast them with lasers.
- Auto-Pilot Mode: Toggle auto-play on or off if you want to give your trigger finger a rest.
- High-Speed Action: Fast bullet mechanics and fluid player movement.
- W / A / S / D: Move your spaceship
- Left Mouse Button: Fire lasers
- P: Enable Auto-Attack mode
- O: Disable Auto-Attack mode
- Escape: Quit the game
Make sure your system has the following installed:
- C++ Compiler & Make: e.g.,
g++andmake - SFML 3: The Simple and Fast Multimedia Library (version 3.x).
- Git LFS: The game's image and font assets are stored using Git Large File Storage. You must install this to download the real assets!
If you just cloned the repository, your images and fonts might be small placeholder files. To download the actual graphics, run:
# On Arch Linux, for example:
sudo pacman -S git-lfs
# Inside the project folder:
git lfs install
git lfs pull(If you skip this step, the game will crash when it tries to load the textures!)
The easiest way to start the game is by using the provided runner script. From the root directory, simply execute:
./run.shThis script will automatically invoke make to compile the source code into the rpg-game-linux executable and then safely launch the game with all asset paths resolving correctly.
Enjoy the game!