Phaser.Component. Bounds

new Bounds()

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

Source - gameobjects/components/Bounds.js, line 12

Members

<readonly> bottom :number

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

Source - gameobjects/components/Bounds.js, line 110

<readonly> left :number

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

Source - gameobjects/components/Bounds.js, line 59

<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 - gameobjects/components/Bounds.js, line 24

<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 - gameobjects/components/Bounds.js, line 42

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

Source - gameobjects/components/Bounds.js, line 76

<readonly> top :number

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

Source - gameobjects/components/Bounds.js, line 93
Phaser Copyright © 2012-2016 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.2 on Fri Jun 10 2016 16:19:20 GMT+0100 (GMT Daylight Time) using the DocStrap template.