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.
- Host: GitHub
- URL: https://github.com/arthuro555/gd-multi
- Owner: arthuro555
- License: mit
- Created: 2020-07-14T18:49:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-14T20:57:21.000Z (almost 2 years ago)
- Last Synced: 2024-05-02T04:20:27.770Z (almost 2 years ago)
- Topics: ci, console, game-development, gdevelop
- Language: JavaScript
- Homepage:
- Size: 272 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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.