API Docs for:
Show:

Component_SceneBehavior Class

Module: gs

The base class of all scene-behavior components. A scene-behavior component define the logic of a single game scene.

Methods

dispose

()

Disposes the scene.

initialize

()

Initializes the scene.

loading

()

Called once per frame while a scene is loading. Can be used to display loading-message/animation.

prepareData

()

Prepares all data for the scene and loads the necessary graphic and audio resources.

prepareTransition

(
  • transitionData
)

Prepares for a screen-transition.

Parameters:

  • transitionData Object
    • Object containing additional data for the transition like graphic, duration and vague.

prepareVisual

()

Prepares all visual game object for the scene.

start

()

Called if the preparation and transition is done and the is ready to start.

transition

(
  • transitionData
)

Executes a screen-transition.

Parameters:

  • transitionData Object
    • Object containing additional data for the transition like graphic, duration and vague.

update

()

Update the scene.

updateContent

()

Update the scene's content.