The game.
The resources data of the game.
The resources needed for any scene.
The resources used by each scene.
Private
currentThe name of the scene for which resources are currently being loaded.
Private
currentThe progress, between 0 and 1, of the loading of the resource, for the
scene that is being loaded (see currentLoadingSceneName
).
Get the gdjs.BitmapFontManager of the RuntimeGame.
The bitmap font manager.
Get the gdjs.FontManager of the RuntimeGame.
The font manager.
Get the gdjs.ImageManager of the RuntimeGame.
The image manager.
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
the runtime game instance.
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
Load and process a scene that is needed right away.
The renderer will show a loading screen while its done.
Optional
onProgress: ((count, total) => Promise<void>)Load a scene resources without parsing them.
When another scene resources are loading in background, it waits for all its resources to be loaded before loading resources of the given scene.
Optional
onProgress: ((count, total) => void)
Pre-load resources of any kind needed for a game or a scene.