Class: SceneStack

SceneStack

new gdjs.SceneStack(runtimeGame)

Hold the stack of scenes (gdjs.RuntimeScene) being played.

Name Type Description
runtimeGame gdjs.RuntimeGame

The runtime game that is using the scene stack

Methods

getCurrentScene()

Return the current gdjs.RuntimeScene being played, or null if none is run.

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.

wasFirstSceneLoaded()

Return true if a scene was loaded, false otherwise (i.e: game not yet started).