UNPKG

phaser4-rex-plugins

Version:
9 lines (6 loc) 252 B
import { GetDisplayWidth } from '../../size/GetDisplaySize.js'; var GetRight = function (gameObject) { var width = GetDisplayWidth(gameObject); return (gameObject.x + width) - (width * gameObject.originX); }; export default GetRight;