Component.Bounds#right

right : number The right coordinate of the Game Object.This is the same as x + width - offsetX. Source code: gameobjects/components/Bounds.js (Line 124)

Component.Bounds#offsetY

[readonly] offsetY : number The amount the Game Object is visually offset from its y coordinate.This is the same as height * anchor.y.It will only be > 0 if anchor.y is not equal to zero. Source code: gameobjects/components/Bounds.js (Line 42)

Component.Bounds#offsetX

[readonly] offsetX : number The amount the Game Object is visually offset from its x coordinate.This is the same as width * anchor.x.It will only be > 0 if anchor.x is not equal to zero. Source code: gameobjects/components/Bounds.js (Line 24)

Component.Bounds#left

left : number The left coordinate of the Game Object.This is the same as x - offsetX. Source code: gameobjects/components/Bounds.js (Line 102)

Component.Bounds#centerY

centerY : number The center y coordinate of the Game Object.This is the same as (y - offsetY) + (height / 2). Source code: gameobjects/components/Bounds.js (Line 80)

Component.Bounds#centerX

centerX : number The center x coordinate of the Game Object.This is the same as (x - offsetX) + (width / 2). Source code: gameobjects/components/Bounds.js (Line 58)

Component.Bounds#Bounds

new Bounds() The Bounds component contains properties related to the bounds of the Game Object. Source code: gameobjects/components/Bounds.js (Line 12)

Component.Bounds#bottom

bottom : number The sum of the y and height properties.This is the same as y + height - offsetY. Source code: gameobjects/components/Bounds.js (Line 168)

Component.Bounds#alignTo()

alignTo(parent, position, offsetX, offsetY) → {Object} Aligns this Game Object to the side of another Game Object, or Rectangle, known as the'parent', in one of 11 possible positions. The parent must be a Game Object, or Phaser.Rectangle object. This can include propertiessuch as World.bounds or Camera.view, for aligning Game Objects within the worldand camera bounds. Or it can include other Sprites, Images, Text objects, BitmapText,TileSprites or Buttons. Please note that aligning a Sprite t

Component.Bounds#alignIn()

alignIn(container, position, offsetX, offsetY) → {Object} Aligns this Game Object within another Game Object, or Rectangle, known as the'container', to one of 9 possible positions. The container must be a Game Object, or Phaser.Rectangle object. This can include propertiessuch as World.bounds or Camera.view, for aligning Game Objects within the worldand camera bounds. Or it can include other Sprites, Images, Text objects, BitmapText,TileSprites or Buttons. Please note that aligning a Sprite t