Phaser API Documentation

  Version: 
GameObjectConfig
Properties:
name type arguments Default description
x number | object <optional> 0

The x position of the Game Object.

y number | object <optional> 0

The y position of the Game Object.

depth number <optional> 0

The depth of the GameObject.

flipX boolean <optional> false

The horizontally flipped state of the Game Object.

flipY boolean <optional> false

The vertically flipped state of the Game Object.

scale number | object <optional> null

The scale of the GameObject.

scrollFactor number | object <optional> null

The scroll factor of the GameObject.

rotation number | object <optional> 0

The rotation angle of the Game Object, in radians.

angle number | object <optional> null

The rotation angle of the Game Object, in degrees.

alpha number | object <optional> 1

The alpha (opacity) of the Game Object.

origin number | object <optional> null

The origin of the Game Object.

scaleMode number <optional> ScaleModes.DEFAULT

The scale mode of the GameObject.

blendMode number <optional> BlendModes.DEFAULT

The blend mode of the GameObject.

visible boolean <optional> true

The visible state of the Game Object.

add boolean <optional> true

Add the GameObject to the scene.

Type:
object
Since: 3.0.0