The object (usually stored in data.json) containing the full project data
Optional
options: RuntimeGameOptionsThe game options
Returns if the game resolution should be automatically adapted when the game window or screen size change. This will only be the case if the game resolution resize mode is configured to adapt the width or the height of the game.
true if the game resolution is automatically changed according to the window/screen size.
Return the additional options passed to the RuntimeGame when created.
The additional options, if any.
Get the gdjs.BitmapFontManager of the RuntimeGame.
The bitmap font manager.
Get the gdjs.FontManager of the RuntimeGame.
The font manager.
Returns if the width or the height of the game resolution should be changed to fit the game window - or if the game resolution should not be updated automatically (empty string).
Either "" (don't change game resolution), "adaptWidth" or "adaptHeight".
Get the gdjs.ImageManager of the RuntimeGame.
The image manager.
Get the input manager of the game, storing mouse, keyboard and touches states.
The input manager owned by the game
Get the JSON manager of the game, used to load JSON from game resources.
The json manager for the game
Get the 3D model manager of the game, used to load 3D model from game resources.
The 3D model manager for the game
Helper function to get information about the platform running the game.
Return the stack of gdjs.RuntimeScene being played.
Get the gdjs.SoundManager of the RuntimeGame.
The sound manager.
Get the Spine Atlas manager of the game, used to load atlases from game resources.
The Spine Atlas manager for the game
Get the Spine manager of the game, used to load and construct spine skeletons from game resources.
The Spine manager for the game
Get the variables of the RuntimeGame.
The global variables
Get the extension's global variables.
The extension name.
The extension's global variables.
Load all assets needed to display the 1st scene, displaying progress in renderer.
When a game is hot-reload, this method can be called with the current scene.
Optional
progressCallback: ((progress) => void)Resolves the name of an embedded resource.
The name of the resource containing the embedded resource.
The name of the embedded resource.
The resource name.
Set if the game resolution should be automatically adapted when the game window or screen size change. This will only be the case if the game resolution resize mode is configured to adapt the width or the height of the game.
true to change the game resolution according to the window/screen size.
Set if the width or the height of the game resolution should be changed to fit the game window - or if the game resolution should not be updated automatically.
Either "" (don't change game resolution), "adaptWidth" or "adaptHeight".
Start a profiler for the currently running scene.
Function to be called when the profiler is stopped. Will be passed the profiler as argument.
Represents a game being played.