Note: This game uses Box2D engine.
The game, Space Battle is an endless runner-style game similar to Jetpack Joyride, Tiny Wings.
The player has to travel as far right as possible to obtain higher scores.
The game stores all the scores that has been accumulated throughout different play sessions to emulate the old arcade style of gameplay.
Keys | In-game action |
---|---|
↑ | Counter-clockwise turn |
↓ | Clockwise turn |
Space | Strength of the trajectory |
As the player moves, they must watch out for the planets since they are randomly generated.\ Colliding against the planet with reduce the player’s health by 1. The player only starts with 5 health.\ Getting too near to the planets will cause the player to be pulled towards the planets.
- Control the angle of the ship’s trajectory
- Strength of the trajectory
-
Ensure that you are at the directory of the game folder in cmd.
-
To compile our game and generate an executable file, please copy the following line and paste it to your cmd:
compile Main.cpp Planet.cpp Strength.cpp Player.cpp Wall.cpp MyContactListener.cpp
-
Type a in the cmd to run our game
Features
- Audio – Our game has a cute 8-bit BGM
- Textures – Our game has textures for all the important game objects
- Scoreboard – Our game has a scoreboard which has all the previously obtained scores