Class: SceneManager

Scene.SceneManager

new Scene.SceneManager (game)

Scene manager.
Name Type Description
game Core.Game the game object

Methods

createScene (sceneName)Boolean

creates a scene
Name Type Description
sceneName String scene name
Returns:
Type Description
Boolean true if created; false otherwise

deleteScene (sceneName)Boolean

deltes scene by name
Name Type Description
sceneName String the scene name for deletetion
Returns:
Type Description
Boolean true if deleted; false otherwise.

getCurrentScene ()Scene.Scene

gets the current scene
Returns:
Type Description
Scene.Scene the current scene

render ()Boolean

render scene manager (current scene)
Returns:
Type Description
Boolean scene's render return value

setCurrentScene (scene)Boolean

sets current scene
Name Type Description
scene Scene.Scene a scene to set
Returns:
Type Description
Boolean true if was set; false otherwise.

update ()Boolean

update scene manager (current scene)
Returns:
Type Description
Boolean scene's update return value