https://github.com/khaledalam/arrow-shooting
Arrow Shooting 2D Game in C++ using OpenGL and various Trigonometry and Geometry Algorithms.
https://github.com/khaledalam/arrow-shooting
2d cpp game opengl
Last synced: 3 months ago
JSON representation
Arrow Shooting 2D Game in C++ using OpenGL and various Trigonometry and Geometry Algorithms.
- Host: GitHub
- URL: https://github.com/khaledalam/arrow-shooting
- Owner: khaledalam
- License: mit
- Created: 2019-04-23T16:57:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-14T07:38:19.000Z (almost 7 years ago)
- Last Synced: 2025-02-10T07:27:52.369Z (over 1 year ago)
- Topics: 2d, cpp, game, opengl
- Language: C++
- Homepage:
- Size: 2.63 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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