khaledalam / arrow-shooting

Arrow Shooting 2D Game in C++ using OpenGL and various Trigonometry and Geometry Algorithms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arrow-Shooting

Arrow Shooting 2D Game in C++ using OpenGL and various Trigonometry and Geometry Algorithms.

Preview:

Inital design of the game idea:

Design fire function:

Usage:

Build:

$ g++ main.cpp -o arrowGame -lGL -lGLU -lglut
$ ./arrowGame

Keys:

[Up] -> increase arrow angle
[Down] -> decrease arrow angle
[Left] -> reset arrow position to default
[Right] -> shoot arrow
[Space] -> shoot arrow
[R] -> restart game

About

Arrow Shooting 2D Game in C++ using OpenGL and various Trigonometry and Geometry Algorithms.

License:MIT License


Languages

Language:C++ 100.0%