Skip to content

Latest commit

 

History

48 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

OpenGL project on the Space Shooter

Installation

  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

Game Description

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.

Objective

Kill your opponent.
Each time a player gets shot, LIFE decreases by 5 points.