Types.GameObjects
DecomposeMatrixResults
<static> DecomposeMatrixResults
| name | type | optional | description |
|---|---|---|---|
| translateX | number | No | The translated x value. |
| translateY | number | No | The translated y value. |
| rotation | number | No | The rotation value. |
| scaleX | number | No | The scale x value. |
| scaleY | number | No | The scale y value. |
Type: object
Member of: Phaser.Types.GameObjects
Source: src/gameobjects/typedefs/DecomposeMatrixResults.js#L1
Since: 3.60.0
FiltersInternalExternal
<static> FiltersInternalExternal
| name | type | optional | description |
|---|---|---|---|
| internal | Phaser.GameObjects.Components.FilterList | No | The internal filter list of the Game Object. These filters are applied first, in the local space of the Game Object. |
| external | Phaser.GameObjects.Components.FilterList | No | The external filter list of the Game Object. These filters are applied last, in the parent space of the Game Object. |
Type: object
Member of: Phaser.Types.GameObjects
Source: src/gameobjects/typedefs/FiltersInternalExternal.js#L1
Since: 4.0.0
GameObjectConfig
<static> GameObjectConfig
| name | type | optional | default | description |
|---|---|---|---|---|
| x | number | object | Yes | 0 | The x position of the Game Object. |
| y | number | object | Yes | 0 | The y position of the Game Object. |
| depth | number | Yes | 0 | The depth of the GameObject. |
| flipX | boolean | Yes | false | The horizontally flipped state of the Game Object. |
| flipY | boolean | Yes | false | The vertically flipped state of the Game Object. |
| scale | number | object | Yes | null | The scale of the GameObject. |
| scrollFactor | number | object | Yes | null | The scroll factor of the GameObject. |
| rotation | number | object | Yes | 0 | The rotation angle of the Game Object, in radians. |
| angle | number | object | Yes | null | The rotation angle of the Game Object, in degrees. |
| alpha | number | object | Yes | 1 | The alpha (opacity) of the Game Object. |
| origin | number | object | Yes | null | The origin of the Game Object. |
| scaleMode | number | Yes | "ScaleModes.DEFAULT" | The scale mode of the GameObject. |
| blendMode | number | Yes | "BlendModes.DEFAULT" | The blend mode of the GameObject. |
| visible | boolean | Yes | true | The visible state of the Game Object. |
| add | boolean | Yes | true | Add the GameObject to the scene. |
Type: object
Member of: Phaser.Types.GameObjects
Source: src/gameobjects/typedefs/GameObjectConfig.js#L1
Since: 3.0.0
GetCalcMatrixResults
<static> GetCalcMatrixResults
| name | type | optional | description |
|---|---|---|---|
| cameraExternal | Phaser.GameObjects.Components.TransformMatrix | No | The calculated Camera external matrix (where the camera is on the screen). |
| camera | Phaser.GameObjects.Components.TransformMatrix | No | The calculated Camera view matrix, including scroll modified by scroll factor. |
| sprite | Phaser.GameObjects.Components.TransformMatrix | No | The calculated Sprite (Game Object) matrix (world position). |
| calc | Phaser.GameObjects.Components.TransformMatrix | No | The calculated results matrix, factoring all others in. |
Type: object
Member of: Phaser.Types.GameObjects
Source: src/gameobjects/typedefs/GetCalcMatrixResults.js#L1
Since: 3.50.0
JSONGameObject
<static> JSONGameObject
| name | type | optional | description |
|---|---|---|---|
| name | string | No | The name of this Game Object. |
| type | string | No | A textual representation of this Game Object, i.e. sprite. |
| x | number | No | The x position of this Game Object. |
| y | number | No | The y position of this Game Object. |
| scale | object | No | The scale of this Game Object |
| scale.x | number | No | The horizontal scale of this Game Object. |
| scale.y | number | No | The vertical scale of this Game Object. |
| origin | object | No | The origin of this Game Object. |
| origin.x | number | No | The horizontal origin of this Game Object. |
| origin.y | number | No | The vertical origin of this Game Object. |
| flipX | boolean | No | The horizontally flipped state of the Game Object. |
| flipY | boolean | No | The vertically flipped state of the Game Object. |
| rotation | number | No | The angle of this Game Object in radians. |
| alpha | number | No | The alpha value of the Game Object. |
| visible | boolean | No | The visible state of the Game Object. |
| scaleMode | number | No | The Scale Mode being used by this Game Object. |
| blendMode | number | string | No | Sets the Blend Mode being used by this Game Object. |
| textureKey | string | No | The texture key of this Game Object. |
| frameKey | string | No | The frame key of this Game Object. |
| data | object | No | The data of this Game Object. |
Type: object
Member of: Phaser.Types.GameObjects
Source: src/gameobjects/typedefs/JSONGameObject.js#L1
Since: 3.0.0
RenderWebGLStep
<static> RenderWebGLStep
A function which performs a rendering operation on the given Game Object.
This is usually the renderWebGL method of the Game Object itself,
but Phaser.GameObjects.Components.RenderSteps allows you to define
a series of steps that are run in sequence.
The function is not expected to run in any particular scope,
so it should not use this. Instead, all required properties should be
accessed via gameObject.
Type: function
Member of: Phaser.Types.GameObjects
Source: src/gameobjects/typedefs/RenderWebGLStep.js#L1
Since: 4.0.0