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

left : number The left coordinate of the Game Object.This is the same as x - offsetX.

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

bottom : number The sum of the y and height properties.This is the same as y + height - offsetY.

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

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

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

alignTo(parent, position, offsetX, offsetY) → {Object}

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

right : number The right coordinate of the Game Object.This is the same as x + width - offsetX.

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

alignIn(container, position, offsetX, offsetY)

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

new Bounds() The Bounds component contains properties related to the bounds of the Game Object.

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#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.Bounds#centerY
  • References/Game Development/Phaser/Game Objects/Components/Component.Bounds

centerY : number The center y coordinate of the Game Object.This is the same as (y - offsetY) + (height / 2)

2025-01-10 15:47:30