It is a replica of the famous game Jetpack Joyride written in OpenGL 3.0.
.
โโโ CMakeLists.txt
โโโ README.md
โโโ assets
โโโ build
โโโ src
2 directories, 2 files
- src - Contains all the code for the game in cpp.
- 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
- 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.
- Movement
- Move Forward: โก๏ธ
- Move Backward: โฌ ๏ธ
- Jetpack: โฌ๏ธ
- Shoot the villian (Superman): F
- Zoom In/Out: Mouse Wheel
- Water Balls: Space
- Shield: S
- 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.
- Collision with normal coin : +5
- Collision with special flying coin : +10
- Collision with firelines: -5
- Collision with boomerang: -1
Feel free to Contribute โค๏ธ