An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Arrow-Shooting

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

# Preview:

![](preview.gif)

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