1) Install CodeBlocks
2) Install OpenGL
Or build it straight from the command line, once freeglut is installed:
g++ main.cpp -o space-shooter -lfreeglut -lopengl32 -lglu32 # Windows
g++ main.cpp -o space-shooter -lglut -lGL -lGLU # Linux
Keyboard controls for PLAYER 1 :
W - UP
S - DOWN
A - LEFT
D - RIGHT
C - to shoot. Hold ‘w’ or ‘s’ while shooting to aim.
Keyboard controls for PLAYER 2 :
I - UP
K - DOWN
J - LEFT
L - RIGHT
M - to shoot. Hold ‘i’ or ‘k’ while shooting to aim.
Kill your opponent.
Each time a player gets shot, LIFE decreases by 5 points.