/JetPack_Joyride

It is a replica of the famous game Jetpack Joyride written in OpenGL 3.0.

Primary LanguageC++MIT LicenseMIT

JetPack Joyride

About the game

It is a replica of the famous game Jetpack Joyride written in OpenGL 3.0.

World

๐Ÿ“ File Structure

.
โ”œโ”€โ”€ CMakeLists.txt
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ assets
โ”œโ”€โ”€ build
โ””โ”€โ”€ src

2 directories, 2 files
  • src - Contains all the code for the game in cpp.

๐Ÿƒ Running the game

  • To build the game enter these command:
mkdir output
cd output
cmake ..
make all
  • To run the game enter these command in the output directory:
./graphics_asgn1

Overview

  • The game has been themed on Batman vs Superman.
  • The player plays as batman.
  • The prime objective of the game is to score as much as possible.
  • After a certain amount of time, a villian appears which needs to be defeated.
  • In order to reach the villian, we need to avoid a number of obstacles.

Villian

๐ŸŽฎ Controls

  • Movement
    • Move Forward: โžก๏ธ
    • Move Backward: โฌ…๏ธ
    • Jetpack: โฌ†๏ธ
    • Shoot the villian (Superman): F
    • Zoom In/Out: Mouse Wheel
    • Water Balls: Space
    • Shield: S

World

  • Flying Coins: They have random velocity, random color. If the player hits the coin, coin disappears and player's score increases by 5.
  • Powerups โ€‹-There are 2 kinds of powerups, one which increases score and other which gives a speed boost.
  • Firelinesโ€‹ - Lines of fire appear at random angles which need to be avoided. -5 if collision occurs.
  • FireBeams โ€‹- Fire Beams move periodically on y-axis. -5 if touched.
  • Magnet โ€‹- Magnet causes a constant attractive force in its direction.
  • Water Balloonsโ€‹ - Can be used to extinguish the firelines.
  • Semi-circular Ring โ€‹- Forces the player to move in a semi-circular fashion when touched.

Score โ€‹is displayed onโ€‹ top right โ€‹of window.

Scoring

  • Collision with normal coin : +5
  • Collision with special flying coin : +10
  • Collision with firelines: -5
  • Collision with boomerang: -1

Feel free to Contribute โค๏ธ