A simple version of a popular game
-
on the main menu screen press one of the buttons: either EXIT (closes the game) or START (starts the game; also you can just press ENTER instead);
-
on the main game screen press ESCAPE at any time to return to the main menu screen;
-
move around using arrows on keyboard, shoot using mouse movement and left button;
-
you can kill enemies to earn points, when you reach a certain point limit you will unlock next weapon;
-
enemies will hurt you if they touch you, you will die if your health reaches 0;
-
when the game is over, press ENTER to play again or ESCAPE to exit to the main menu.
-
Install required tools:
sudo apt install g++ cmake libx11-dev
-
Compile and run using
./compile_and_run.sh
Based on template engine: https://github.com/imp5imp5/game_template_linux. Engine.cpp and Engine.h are placed in geometry_wars/ folder as they were
-
add powerups - player, enemies, projectiles etc.; player can store his own powerups, others are global and need method apply_if_applicable()
-
add color alpha and inverse
-
probably break down MainGameScene act into several methods
-
add real colliders
-
allow to draw rotated