phaser/v3/src/display/bounds/GetBottom.js

14 lines
277 B
JavaScript
Raw Normal View History

2017-02-28 00:32:30 +00:00
/**
* 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.originY);
2017-02-28 00:32:30 +00:00
};
module.exports = GetBottom;