This is a multiplayer space shooter game developed in C++ using OpenGL. Players control spaceships and engage in a battle to shoot down their opponent while avoiding incoming laser. The game features an introductory screen, a main menu with options, an instructions screen, the gameplay itself, and a game-over screen.
- Multiplayer Gameplay: Two players can engage in a head-to-head battle on the same screen.
- Player Controls: Players can control their spaceship's movement using the keyboard.
- Laser Attacks: Players can shoot lasers at their opponents to reduce their health.
- Health Bars: Health bars are displayed for both players, showing their remaining health.
- Instructions Screen: Provides players with information on how to play the game.
To run the game, you need to have the following installed:
- C++ compiler
- OpenGL library
- GLUT library (OpenGL Utility Toolkit)
- Clone this repository to your local machine.
- Compile the main.cpp file using your preferred C++ compiler. Make sure to link the OpenGL and GLUT libraries.
- Execute the compiled executable file to start the game.
Player 1:
Move Up: w
Move Down: s
Move Left: a
Move Right: d
Fire Laser: c
Player 2:
Move Up: i
Move Down: k
Move Left: j
Move Right: l
Fire Laser: m
- Introductory screen
2. Main menu
3. Instructions screen
4. Game Play screen
5. Game-over screen
This game was created by: