tmLoad

Loads a map exported from Tiled as JSON (.tmj), with its layers, tilesets and objects. On the web it loads in the background, so check tmLoaded before relying on it. The guide lists what is and isn't supported. Takes path (The path of the .tmj file). Returns: The map's handle.

Tilemap

Parameters & Returns

Parameters

path String

Returns

Int

Quick Summary

Loads a map exported from Tiled as JSON (.tmj), with its layers, tilesets and objects. On the web it loads in the background, so check tmLoaded before relying on it. The guide lists what is and isn't supported. Takes path (The path of the .tmj file). Returns: The map's handle.

Technical Exegesis...

Loads a map exported from Tiled as JSON (.tmj), with its layers, tilesets and objects. On the web it loads in the background, so check tmLoaded before relying on it. The guide lists what is and isn't supported.

See the Tilemaps guide.

Returns: The map's handle.

Example

Example.bam
map = tmLoad("Media/level.tmj")