An open API service indexing awesome lists of open source software.

https://github.com/arthuro555/gd-multi

Run a GDevelop game in console.
https://github.com/arthuro555/gd-multi

ci console game-development gdevelop

Last synced: 11 months ago
JSON representation

Run a GDevelop game in console.

Awesome Lists containing this project

README

          

# gd-multi
Exports a GDevelop game to a console app.

## Installation:
`npm install gd-multi`

## Usage:
`gdmulti -o OutputDirectory -p path/to/game.json`

## Usage of the exported game:
The exported game can be executed by using:
```bash
yarn #or npm install
node .
```
After the game finishes loading, you will get an REPL. This REPL has runtimeScene and runtimeGame exposed as globals.

### API in the REPL:
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.