University of Bologna 2018/19 CS course Programming project, aiming to produce a reduced C++ implementation of the Atari 1982 game Gravitar.
Non-Gravitar features the following list of commands
Command | Effect |
---|---|
w | Accelerate spaceship |
a | Rotate spaceship counter-clockwise |
d | Rotate spaceship clockwise |
k | Activate tractor beam |
space bar | Shoot missiles |
Aim of the game is recording the highest possible score by entering into planets and striking all bunkers. Once all of bunkers in a planet have been cleared, that planet will undergo destruction. And when all planets of a solar system have been cleared, you'll be taken into a new solar system. Be careful to not go out of fuel!
In order to compile this project, first ensure you have all the needed dependencies:
- The SFML library
Once you have completed your setup, simply issue the following commands
cd <project root directory>
cmake .
make NonGravitar # (1)
./NonGravitar # (2)
This project offers a reasonable unit-testing suite, written according to
Catch2. In order to run it, simply
substitute commands (1)
and (2)
above with
make test-all
./test-all