Constructor
new SceneStack(runtimeGame)
Parameters:
Name | Type | Description |
---|---|---|
runtimeGame |
The runtime game that is using the scene stack |
- Source:
Methods
getCurrentScene()
Return the current gdjs.RuntimeScene being played, or null if none is run.
- Source:
onGameResolutionResized()
Called by the RuntimeGame when the game resolution is changed. Useful to notify scene and layers that resolution is changed, as they might be caching it.
- Source:
push()
Pause the scene currently being played and start the new scene that is specified.
If externalLayoutName
is set, also instantiate the objects from this external layout.
- Source:
replace()
Start the specified scene, replacing the one currently being played.
If clear
is set to true, all running scenes are also removed from the stack of scenes.
- Source:
wasFirstSceneLoaded()
Return true if a scene was loaded, false otherwise (i.e: game not yet started).
- Source: