Graphics, opengl, glfw, shooting game, projectile, collisions.
ABOUT THE GAME: Shoot the cannon ball to destroy the building avoiding the obstacles(green fans).
Install GLFW, GLAD, GLM. Run the game by using these commands in the directory submitted.
g++ -o gameexecutable game.cpp glad.c -lGL -lglfw -ldl ./gameexecutable
OR
make gameexecutable ./gameexecutable
Keyboard Controls:
- Rotate Cannon(up/down) ----- UP/DOWN arrow key
- Shoot Ball ----- SPACEBAR #STRENGTH of shoot depends upon duration of pressing of space bar#.
- Reload Cannon ----- r
- Zoom OUT ----- o
- Zoom IN ----- p
Mouse Controls:
- Shoot Ball ----- LEFT MOUSE BUTTON #STRENGTH of shoot depends upon duration of pressing of LEFT MOUSE BUTTON#
- Reload Cannon ----- RIGHT MOUSE BUTTON
- Zoom OUT ----- MOUSE SCROLL UP
- Zoom IN ----- MOUSE SCROLL DOWN Use Keyboard up/down arrow keys to change cannon angle.