Component.Bounds#centerX
  • References/Game Development/Phaser/Game Objects/Components/Component.Bounds

centerX : number The center x coordinate of the Game Object.This is the same as (x - offsetX) + (width / 2)

2025-01-10 15:47:30
Component.Reset#reset()
  • References/Game Development/Phaser/Game Objects/Components/Component.Reset

reset(x, y, health) → {PIXI.DisplayObject} Resets the Game Object

2025-01-10 15:47:30
Component.PhysicsBody#x
  • References/Game Development/Phaser/Game Objects/Components/Component.PhysicsBody

x : number The position of the Game Object on the x axis relative to the local coordinates of the parent.

2025-01-10 15:47:30
Component.Bounds#top
  • References/Game Development/Phaser/Game Objects/Components/Component.Bounds

top : number The y coordinate of the Game Object.This is the same as y - offsetY.

2025-01-10 15:47:30
Component.Bounds#offsetY
  • References/Game Development/Phaser/Game Objects/Components/Component.Bounds

[readonly] offsetY : number The amount the Game Object is visually offset from its y coordinate

2025-01-10 15:47:30
Component.Health#setHealth
  • References/Game Development/Phaser/Game Objects/Components/Component.Health

setHealth Sets the health property of the Game Object to the given amount.Will never exceed the maxHealth value.

2025-01-10 15:47:30
Component.ScaleMinMax#scaleMax
  • References/Game Development/Phaser/Game Objects/Components/Component.ScaleMinMax

scaleMax : Phaser.Point The maximum scale this Game

2025-01-10 15:47:30
Component.LifeSpan#LifeSpan
  • References/Game Development/Phaser/Game Objects/Components/Component.LifeSpan

new LifeSpan() LifeSpan Component Features. Source code:

2025-01-10 15:47:30
Component.BringToTop#sendToBack()
  • References/Game Development/Phaser/Game Objects/Components/Component.BringToTop

sendToBack() → {PIXI.DisplayObject} Sends this Game Object to the bottom of its parents display

2025-01-10 15:47:30
Component.LoadTexture#frameName
  • References/Game Development/Phaser/Game Objects/Components/Component.LoadTexture

frameName : string Gets or sets the current frame name of the texture being used to render this Game Object. To change the

2025-01-10 15:47:30