CLI

Note

For the CLI to work you should be inside the project folder.

Note

Currently MinGW-w64 is the only development enviroment supported to build and develop for Windows.

Using the MinGW-w64 or MSYS2 with MinGW-w64 enviroments you can build and call the CLI commands in Windows just like in any Linux OS without using bat files.

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

By default emsdk will be installed in the ~/.hibiki folder, that way i can be used by multiple projects.
In Windows with you using MSYS2 should be installed in “C:\msys64\home\{username}\.hibiki”
$ ./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