UNPKG

@petkoneo/phaser3-rex-plugins

Version:
10 lines (7 loc) 263 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;