Phaser API Documentation

  Version: 
JSONGameObject
Properties:
name type description
name string

The name of this Game Object.

type string

A textual representation of this Game Object, i.e. sprite.

x number

The x position of this Game Object.

y number

The y position of this Game Object.

scale object

The scale of this Game Object

scale.x number

The horizontal scale of this Game Object.

scale.y number

The vertical scale of this Game Object.

origin object

The origin of this Game Object.

origin.x number

The horizontal origin of this Game Object.

origin.y number

The vertical origin of this Game Object.

flipX boolean

The horizontally flipped state of the Game Object.

flipY boolean

The vertically flipped state of the Game Object.

rotation number

The angle of this Game Object in radians.

alpha number

The alpha value of the Game Object.

visible boolean

The visible state of the Game Object.

scaleMode number

The Scale Mode being used by this Game Object.

blendMode number | string

Sets the Blend Mode being used by this Game Object.

textureKey string

The texture key of this Game Object.

frameKey string

The frame key of this Game Object.

data object

The data of this Game Object.

Type:
object
Since: 3.0.0