https://github.com/visualgmq/treasurelooter
A game made in C++17 & SDL2
https://github.com/visualgmq/treasurelooter
cpp17 game sdl2
Last synced: 11 months ago
JSON representation
A game made in C++17 & SDL2
- Host: GitHub
- URL: https://github.com/visualgmq/treasurelooter
- Owner: VisualGMQ
- Created: 2024-09-13T15:20:30.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-15T13:45:41.000Z (over 1 year ago)
- Last Synced: 2024-12-15T14:27:20.185Z (over 1 year ago)
- Topics: cpp17, game, sdl2
- Language: C++
- Homepage:
- Size: 1.55 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# TreasureLooter
[](https://github.com/VisualGMQ/TreasureLooter/actions/workflows/build.yaml)
每周日下午四点B站直播开发,关注[单身剑法传人](https://space.bilibili.com/256768793?spm_id_from=333.1007.0.0)谢谢喵
# Introduce
TreasureLooter is a 2D game made in SDL3
## How To Build
### Build For PC
```bash
cd game
cmake --preset=default
cmake --build cmake-build
```
### Build For Android
First we must build `schema_parser` under PC and run `run_schema_parser` target:
```bash
cmake -S game/ -B cmake-build
cmake --build cmake-build --target run_schema_parser
```
It will generate `game/schema_generate`.
Then copy `game` folder to `android/app/jni`.
Copy `game/assets` folder to `android/app/src/main/assets`.
```bash
cp -r game android/app/jni
cp -r game/assets android/app/src/main/assets/
```
Then use `gradle` to build (or use AndroidStudio)
```bash
cd android
gradlew build
```
## How To Run
Run `TreasureLooter[.exe]` under `game` directory.
Or you can install:
```bash
cmake --build .\cmake-build\ --target install --config Release
```
It will install game to `install` dir. Than you can open `install/TreasureLooter[.exe]` to play.
Also can get a package:
```bash
cmake --build .\cmake-build\ --target package --config Release
```
It will generate `cmake-build/TreasureLooter--.zip` for you.