Skip to content

aarushijain-24/Mutliplayer-Shooting-Game

Repository files navigation

Multiplayer Space Shooter Game

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.

Features

  1. Multiplayer Gameplay: Two players can engage in a head-to-head battle on the same screen.
  2. Player Controls: Players can control their spaceship's movement using the keyboard.
  3. Laser Attacks: Players can shoot lasers at their opponents to reduce their health.
  4. Health Bars: Health bars are displayed for both players, showing their remaining health.
  5. Instructions Screen: Provides players with information on how to play the game.

Prerequisites

To run the game, you need to have the following installed:

  1. C++ compiler
  2. OpenGL library
  3. GLUT library (OpenGL Utility Toolkit)

How to Run

  1. Clone this repository to your local machine.
  2. Compile the main.cpp file using your preferred C++ compiler. Make sure to link the OpenGL and GLUT libraries.
  3. Execute the compiled executable file to start the game.

Controls

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

Screenshots

  1. Introductory screen


2. Main menu

3. Instructions screen

4. Game Play screen

5. Game-over screen

This game was created by: