CLI¶
Note
For the CLI to work you should be inside the project folder.
Note
Installing libraries¶
To install SDL2 type in the terminal:
Note
If you already have SDL installed you don’t need to use that command, but to compile for android you will need the SDL source that is downloaded with that command.
$ ./hibiki --setup SDL
To build the web version we need to install emscripten, you can install with:
Note
$ ./hibiki --setup EMSDK
Building a game¶
To build a debug version of a game you can type:
$ ./hibiki --build-debug
To build a debug version of a game with log enabled:
$ ./hibiki --build-debug --log
To build a debug version of a game with profiling and log enabled:
$ ./hibiki --build-debug --log --profiling
Building a game for web¶
To build a debug version for web:
$ ./hibiki --build-debug --plataform WEB
To build a debug version for web with log:
$ ./hibiki --build-debug --plataform WEB --log
Building a game for android¶
To build a debug version for android:
$ ./hibiki --build-debug --plataform ANDROID
To build a debug version for android with log:
$ ./hibiki --build-debug --plataform ANDROID --log
Running a game¶
To start a game run:
$ ./hibiki --run
To start on android run:
Note
The android device should be connect to one of the USB ports in the computer and with Developer Options enabled.
$ ./hibiki --run ANDROID