Class: GameStage

GameStage

Represents the stage of the game,
Contains pages logic.
Instances should be created and registered with System.registerStage() factory method
Source:
See:
  • System instances of this class holds by the System class

Members

addEventListener

Source:

addRenderObject

Add render object to the stageData
Source:

audio :ISystemAudio

Source:

draw :DrawObjectFactory

Source:

iLoader :AssetsManager

Source:
Tutorials:

iSystem :ISystem

Source:

isActive :boolean

Determines if this stage render is Active or not
Source:

isBoundariesCollision

Source:

isInitiated :boolean

Determines if this stage is initialized or not
Source:

isObjectsCollision

Source:

name :string

Current stage name
Source:

removeEventListener

Source:

stageData :GameStageData

Source:

systemSettings :SystemSettings

Source:

Methods

init()

Source:
Tutorials:
  • Tutorial: stages_lifecycle Custom logic for init stage

register()

Source:
Tutorials:
  • Tutorial: stages_lifecycle Custom logic for register stage

resize()

Custom logic for resize stage
Source:

start(optionsopt)

Custom logic for start stage
Parameters:
Name Type Attributes Description
options Object <optional>
Source:

stop()

Source:
Tutorials:
  • Tutorial: stages_lifecycle Custom logic for stop stage