mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-10-09 23:58:25 +03:00
d713e1470e472d664a290a8bf49ea9fbaabc7c6a
- Add some functions to ASYNCIFY_ADD A function that calls an asynchronous function via a function pointer must be added to ASYNCIFY_ADD, even if it had a direct call to another asynchronous function, so that the indirect call itself is instrumented. - Add dummy emscripten_sleep() call to send_agsevent Because adding a function to ASYNCIFY_ADD does not make its callers instrumented transitively.
xsytem35-sdl2
This is a multi-platform port of xsystem35, a free implementation of AriceSoft's System3.x game engine.
Download
Prebuilt binaries for Windows and Android can be downloaded from the Releases page.
Build
Linux (Debian / Ubuntu)
$ sudo apt install build-essential cmake libgtk-3-dev libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev
$ mkdir -p out/debug
$ cd out/debug
$ cmake -DCMAKE_BUILD_TYPE=Debug ../../
$ make && make install
MacOS
Homebrew is needed.
$ brew install cmake pkg-config sdl2 sdl2_mixer sdl2_ttf libjpeg
$ mkdir -p out/debug
$ cd out/debug
$ cmake -DCMAKE_BUILD_TYPE=Debug ../../
$ make && make install
Windows
MSYS2 is needed.
$ pacman -S cmake mingw-w64-x86_64-cmake mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_ttf mingw-w64-x86_64-SDL2_mixer mingw-w64-x86_64-libjpeg-turbo
$ mkdir -p out/debug
$ cd out/debug
$ cmake -G"MSYS Makefiles" -DCMAKE_BUILD_TYPE=Debug ../../
$ make
Emscripten
$ mkdir -p out/wasm
$ cd out/wasm
$ emcmake cmake -DCMAKE_BUILD_TYPE=MinSizeRel ../../
$ make
To use the generated binary, checkout Kichikuou on Web and copy out/xsystem35.* into its docs directory.
Android
See android/README.md.
Languages
C
83.2%
Java
10.6%
Kotlin
5%
CMake
1.1%