UNPKG

phaser4-rex-plugins

Version:
10 lines (7 loc) 272 B
import { GetDisplayWidth } from '../../size/GetDisplaySize.js'; var SetLeft = function (gameObject, value) { var width = GetDisplayWidth(gameObject); gameObject.x = value + (width * gameObject.originX); return gameObject; }; export default SetLeft;