Files
GDevelop/GDJS
ViktorVovk 5c71a4da56 Allow to unload scene resources when a scene is exited (#7381)
* This adds two new settings, available in the Project Properties and in the Scene Properties dialog, to allow to specify the strategy for preloading resources of the scenes and unloading them. By default, a game will preload in background the resources of all scenes. It will never unload these resources (so scene switching is fast).
* You can now choose to unload the resources of a scene when the scene is left using the "Resources unloading" field. If the scene is launched again later, it will load its resources again.
* You can also choose to change the preloading to disable it for all scenes (by modifying the setting in the project properties) or enable it/disable it on a scene by scene basis. This can be useful for large or modular games where you anticipate the player to only play some scenes, or if you want to reduce the resources that needs to be loaded on a web game.
2025-07-02 16:09:52 +02:00
..
2024-07-11 14:13:55 +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.

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.