https://github.com/hardingadonis/dino-gun
A simple game made with C++ & SDL2
https://github.com/hardingadonis/dino-gun
Last synced: 8 months ago
JSON representation
A simple game made with C++ & SDL2
- Host: GitHub
- URL: https://github.com/hardingadonis/dino-gun
- Owner: hardingadonis
- License: mit
- Created: 2024-03-12T16:08:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-16T09:08:41.000Z (almost 2 years ago)
- Last Synced: 2024-12-13T01:15:40.128Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 2.92 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dino Gun
[](https://github.com/hardingadonis/dino-gun/actions/workflows/build.yml)




> A simple game made with C++ & SDL2
## Requirements
- C++ 17
- SDL2, SDL2_image, SDL2_ttf, SDL2_mixer
- CMake
- Ninja
## Build
- Clone the repository
```bash
git clone https://github.com/hardingadonis/dino-gun.git --recursive
```
- Create a build directory
```bash
cd dino-gun
mkdir build
cd build
```
- Install dependencies
```bash
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libsdl2-mixer-dev ninja-build
```
- Build the project
```bash
cmake .. -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -G Ninja
cmake --build .
cmake --install .
```
- Run the game
```bash
./dino-gun
```
## Contributors:
## Licenses:
- [Dino Gun](https://github.com/hardingadonis/dino-gun) is under the [MIT license](https://github.com/hardingadonis/dino-gun/blob/main/LICENSE).