UNPKG

phaser4-rex-plugins

Version:
9 lines (6 loc) 242 B
import { GetDisplayHeight } from '../../size/GetDisplaySize.js'; var GetTop = function (gameObject) { var height = GetDisplayHeight(gameObject); return gameObject.y - (height * gameObject.originY); }; export default GetTop;