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” and “hexagonal”.
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
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
Optional
flatten: booleanif true, flatten all objects into the given container, else a me.Container
object will be created for each corresponding groups
Optional
setViewportBounds: 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.
return an Array of instantiated objects, based on the map object definition
Optional
flatten: 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
a TMX Tile Map Object Tiled QT +0.7.x format