melonJS
    Preparing search index...

    Function applyTMXProperties

    • Apply the custom values of a map element to the given object: its properties, as Tiled writes them, and its attributes, the same thing as a plain object of values (which Sprite Fusion writes, and is the shorter one to write by hand). An attribute is taken as it is; where both name a value, the attribute is the one kept.

      Parameters

      • obj: object

        object to apply the properties to

      • data: object

        TMX data object

      Returns void