name of TMX map
TMX map in JSON format
The map class.
width of the tilemap in tiles
is the map an infinite map
name of the tilemap
the map orientation type. melonJS supports “orthogonal”, “isometric”, “staggered”, “hexagonal” and “oblique”.
the order in which tiles on orthogonal tile layers are rendered. (valid values are "left-down", "left-up", "right-down", "right-up")
height of the tilemap in tiles
horizontal skew in pixels per tile row (oblique maps, since Tiled 1.12)
vertical skew in pixels per tile column (oblique maps, since Tiled 1.12)
The Tiled version used to save the file (since Tiled 1.0.1).
Tile height
Tile width
the TMX format version
add all the map layers and objects to the given container. note : this will not automatically update the camera viewport
target container
Optionalflatten: booleanif true, flatten all objects into the given container, else a me.Container object will be created for each corresponding groups
OptionalsetViewportBounds: booleanif true, set the viewport bounds to the map size, this should be set to true especially if adding a level to the game world container.
destroy function, clean all allocated objects
return the map bounding rect
Return an Array of instantiated objects, based on the map object definition. Objects are created using the Tiled object factory registry, which dispatches to the appropriate factory based on the object's class, name, or structure. Custom factories can be registered via registerTiledObjectFactory or registerTiledObjectClass.
Optionalflatten: booleanif true, flatten all objects into the returned array.
when false, a me.Container object will be created for each corresponding groups
Array of Objects
Return the map default renderer
a TMX renderer
a TMX Tile Map Object Tiled QT +0.7.x format