VisualGMQ / TreasureLooter

a game made in SDL2
0 stars 0 forks source link

Build

TreasureLooter

A game

Dependencies

How to build

Windows/MacOS/Linux

  1. enter game folder
  2. use cmake to build
    cmake --preset=default
    cmake --build cmake-build

Emscripten

  1. enter game folder
  2. config cmake:
    emcmake cmake -S . -B cmake-build
  3. use cmake to build
    cmake --build cmake-build
  4. run game
    cd cmake-build
    emrun main.html

Android

  1. fetch submodules:
    git submodule update --init --recursive
  2. copy game folder to android/app/jni
  3. copy game/assets folder to android/app/src/main/assets(copy whole dir, not copy contents of assets to android/app/src/main/assets)
  4. use Android Studio to build or run ./android/gradlew build

How to develop

What tool/asset_fixer.py do

some assets:

  1. Tiled exported tilemap data

contains incompatible data with our asset definitions. asset_fixer.py will fix them.