A simple implementation of the classic Asteroids game in C++ using the Simple and Fast Multimedia Library (SFML).
W
orUP
: Forward thrust.A
orLEFT
: Anti-clockwise rotation.D
orRIGHT
: Clockwise rotation.ENTER
orSPACE
: Fire projectile.
- GCC
Install GCC 12.1
or higher from here.
- SFML
Install SFML 2.6.0
from here.
- In the terminal, run the bash script
setup.sh
via:
./setup.sh
This will create an executible file called asteroids
.
- To start the game, run the following command:
./asteroids
The gameplay is shown in the demo
directory.
NOTE : The sources of the images and the font used in this project are mentioned in source.md
file.