UNPKG

phaser4-rex-plugins

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