Exports a GDevelop game to a console app.
npm install gd-multi
gdmulti -o OutputDirectory -p path/to/game.json
The exported game can be executed by using:
yarn #or npm install
node .
After the game finishes loading, you will get an REPL. This REPL has runtimeScene and runtimeGame exposed as globals.
The REPL has some APIs exposed. Right now the only one is renderFrameToAscii
.
It renders the last drawn frame of the game as ascii. It accepts as argument a filename that you can use to save the ascii image to a text file.
It always returns the full string.