A simple implementation of the classic Asteroids game in C++ using the Simple and Fast Multimedia Library (SFML).
WorUP: Forward thrust.AorLEFT: Anti-clockwise rotation.DorRIGHT: Clockwise rotation.ENTERorSPACE: 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.shvia:
./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.
