- Source: src/gameobjects/typedefs/index.js (Line 7)
Namespaces
Type Definitions
-
Face
-
Type:
- object
- Since: 3.50.0
- Source: src/gameobjects/typedefs/Face.js (Line 1)
Properties:
Name Type Description vertex1Phaser.Types.GameObjects.Vertex The first face vertex.
vertex2Phaser.Types.GameObjects.Vertex The second face vertex.
vertex3Phaser.Types.GameObjects.Vertex The third face vertex.
isCounterClockwiseboolean Are the vertices counter-clockwise?
-
GameObjectConfig
-
Type:
- object
- Since: 3.0.0
- Source: src/gameobjects/typedefs/GameObjectConfig.js (Line 1)
Properties:
Name Type Argument Default Description xnumber <optional>
0 The x position of the Game Object.
ynumber <optional>
0 The y position of the Game Object.
depthnumber <optional>
0 The depth of the GameObject.
flipXboolean <optional>
false The horizontally flipped state of the Game Object.
flipYboolean <optional>
false The vertically flipped state of the Game Object.
scalenumber | object <optional>
<nullable>
null The scale of the GameObject.
scrollFactornumber | object <optional>
<nullable>
null The scroll factor of the GameObject.
rotationnumber <optional>
0 The rotation angle of the Game Object, in radians.
anglenumber <optional>
<nullable>
null The rotation angle of the Game Object, in degrees.
alphanumber <optional>
1 The alpha (opacity) of the Game Object.
originnumber | object <optional>
<nullable>
null The origin of the Game Object.
scaleModenumber <optional>
ScaleModes.DEFAULT The scale mode of the GameObject.
blendModenumber <optional>
BlendModes.DEFAULT The blend mode of the GameObject.
visibleboolean <optional>
true The visible state of the Game Object.
addboolean <optional>
true Add the GameObject to the scene.
-
GetCalcMatrixResults
-
Type:
- object
- Since: 3.50.0
- Source: src/gameobjects/typedefs/GetCalcMatrixResults.js (Line 1)
Properties:
Name Type Description cameraPhaser.GameObjects.Components.TransformMatrix The calculated Camera matrix.
spritePhaser.GameObjects.Components.TransformMatrix The calculated Sprite (Game Object) matrix.
calcPhaser.GameObjects.Components.TransformMatrix The calculated results matrix, factoring all others in.
-
JSONGameObject
-
Type:
- object
- Since: 3.0.0
- Source: src/gameobjects/typedefs/JSONGameObject.js (Line 1)
Properties:
Name Type Description namestring The name of this Game Object.
typestring A textual representation of this Game Object, i.e.
sprite.xnumber The x position of this Game Object.
ynumber The y position of this Game Object.
scaleobject The scale of this Game Object
Properties
Name Type Description xnumber The horizontal scale of this Game Object.
ynumber The vertical scale of this Game Object.
originobject The origin of this Game Object.
Properties
Name Type Description xnumber The horizontal origin of this Game Object.
ynumber The vertical origin of this Game Object.
flipXboolean The horizontally flipped state of the Game Object.
flipYboolean The vertically flipped state of the Game Object.
rotationnumber The angle of this Game Object in radians.
alphanumber The alpha value of the Game Object.
visibleboolean The visible state of the Game Object.
scaleModenumber The Scale Mode being used by this Game Object.
blendModenumber | string Sets the Blend Mode being used by this Game Object.
textureKeystring The texture key of this Game Object.
frameKeystring The frame key of this Game Object.
dataobject The data of this Game Object.
-
Vertex
-
Type:
- object
- Since: 3.50.0
- Source: src/gameobjects/typedefs/Vertex.js (Line 1)
Properties:
Name Type Description xnumber The x coordinate of the vertex.
ynumber The y coordinate of the vertex.
znumber The z coordinate of the vertex.
normalXnumber The x normal of the vertex.
normalYnumber The y normal of the vertex.
normalZnumber The z normal of the vertex.
unumber UV u texture coordinate of the vertex.
vnumber UV v texture coordinate of the vertex.
alphanumber The alpha value of the vertex.
