Class: GameStageData

GameStageData

A storage for stage data, such as gameObjects, boundaries, worldDimensions and offset
Source:
See:

Members

canvasDimensions :Array.<number>

Source:

isWorldBoundariesEnabled

Deprecated:
  • Yes
Source:

mapCenter :Array.<number>

Source:

mapRotate :number

Source:

renderObjects

a getter to retrieve all attached renderObjects
Source:

worldDimensions :Array.<number>

Source:

worldOffset :Array.<number>

Source:

Methods

centerCameraPosition(x, y)

Parameters:
Name Type Description
x number
y number
Source:

getBoundaries() → {Array.<Array.<number>>}

Source:
Returns:
Type
Array.<Array.<number>>

getObjectsByInstance(instance) → {Array.<Object>}

Retrieve specific objects instances
Parameters:
Name Type Description
instance Object drawObjectInstance to retrieve
Source:
Returns:
Type
Array.<Object>

isOffsetTurnedOff() → {boolean}

Source:
Returns:
Type
boolean