chem-tmx

parse tiled maps and load tileset images

chem-tmx

Loads a Tiled map editor TMX file ready for use with the chem game engine.

var chem = require('chem');
var tmx = require('chem-tmx');
 
tmx.load(chem, "level1.tmx", function(errmap) {
  if (err) throw err;
  // this will be an Image instance of the tile 
  console.log(map.tileSets[0].tiles[0].image);
});