mirror of
https://github.com/photonstorm/phaser
synced 2025-01-26 11:55:13 +00:00
14 lines
277 B
JavaScript
14 lines
277 B
JavaScript
|
/**
|
||
|
* The left coordinate of the Game Object.
|
||
|
* This is the same as `x - offsetX`.
|
||
|
*
|
||
|
* @property {number} left
|
||
|
*/
|
||
|
|
||
|
var GetBottom = function (gameObject)
|
||
|
{
|
||
|
return (gameObject.y + gameObject.height) - (gameObject.height * gameObject.anchorY);
|
||
|
};
|
||
|
|
||
|
module.exports = GetBottom;
|