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-2015 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.2 on Thu Feb 18 2016 14:40:59 GMT+0000 (GMT Standard Time) using the DocStrap template.

快捷菜单

注意:只有登录才能全文翻译,每个新用户赠送300会员币。
赚取方法:文章评论+1000,分享网站截图给站长+3000,另充10元+100万会员币
支持一下记得截图给站长!

VIP限时免费阅读!登录可得1万币尽情中文阅读!


记得CTRL+D收藏!
站长微信:
支持自学php网
如有问题,记得强刷一下.

  • bottom :number - 属性
  • left :number - 属性
  • offsetX :number - 属性
  • offsetY :number - 属性
  • right :number - 属性
  • top :number - 属性