phaser - v4.0.0-rc.4
    Preparing search index...
    • Convert a Tiled object to an internal parsed object normalising and copying properties over, while applying optional x and y offsets. The parsed object will always have the properties id, name, type, rotation, properties, visible, x, y, width and height. Other properties will be added according to the object type (such as text, polyline, gid etc.)

      Parameters

      • tiledObject: object

        Tiled object to convert to an internal parsed object normalising and copying properties over.

      • OptionaloffsetX: number

        Optional additional offset to apply to the object's x property. Defaults to 0. Default 0.

      • OptionaloffsetY: number

        Optional additional offset to apply to the object's y property. Defaults to 0. Default 0.

      Returns object