phaser - v4.0.0-rc.4
    Preparing search index...
    • Positions the Game Object so that it is centered on the given coordinates.

      Type Parameters

      Parameters

      • gameObject: G

        The Game Object that will be re-positioned.

      • x: number

        The horizontal coordinate to position the Game Object on.

      • y: number

        The vertical coordinate to position the Game Object on.

      Returns G