Files
Clément Pasteau 920d0b86c1 Fix default variable string value being empty instead of 0 (#8473)
* Before, this was set as 0 even though displaying as empty in the
variablesList.
* Projects created before 5.6.267 will keep the same behavior (0 as default value for string variables) with an option to move to the new behavior (empty as default value) in the project properties dialog.
* Projects created from 5.6.267 will use the new default behavior (empty as default value)



https://github.com/user-attachments/assets/0d885c70-b68a-431f-8dcb-08e4e193b8a1
2026-04-27 09:37:45 +02:00
..

GDevelop JavaScript Platform (HTML5 game engine)

GDevelop JavaScript Platform (GDJS) is the game engine for making HTML5/Javascript based games with GDevelop.

📚 Game developer, searching for the documentation? Go to the GDJS Runtime (game engine) documentation.

1) Installation 💻

To do changes in the game engine or create extensions, install the development version (click here to learn more).

2) Development 🤓

GDJS is composed of two parts:

  • the JavaScript game engine (Runtime folder), called GDJS Runtime.
  • the C++ part exposing GDJS to GDevelop IDE (GDJS folder), including the Exporter and classes doing transpilation from events to JavaScript, called GDJS Platform.

GDJS Runtime (game engine)

The game engine is in the Runtime folder. If you want to work on the engine directly, follow the GDevelop 5 README about the development of the game engine.

  • To use the game engine, you can look into the GDJS Runtime (game engine) documentation.

  • To run tests for the game engine, go to GDJS/tests, run npm install and npm test. More information in the README for the tests.

  • To launch type checking with TypeScript, run npm install and npm run check-types in GDJS folder.

Building GDJS Runtime

To build the GDJS Runtime, run npm run build in the GDJS folder.

Build Options:

  • Production build (default): npm run build - builds with minification enabled
  • Debug build: npm run build -- --debug - builds without minification for easier debugging
  • Custom output path: npm run build -- --out=/path/to/output - specify custom output directory

Examples:

# Standard production build
npm run build

# Debug build for development (no minification)
npm run build -- --debug

# Debug build with custom output path
npm run build -- --debug --out=./debug-build

GDJS Platform (exporters, code generation...)

Check the GDJS Platform documentation or the full GDevelop developers documentation.

3) How to contribute 😎

Any contribution is welcome! Whether you want to submit a bug report, a feature request or any pull request to add a feature, do not hesitate to get in touch.

License

GDJS is distributed under the MIT license: see LICENSE.md for more information.