Import Tiled maps into pixi v3.
Uses the new loader middleware to intercept Tiled json maps and parse them into renderable objects.
The resulting Map object is an extension of PIXI.Container, with children representing each of the Tiled map layers.
npm install pixi-tiled
var PIXI = require('pixi.js');
var pixiTiled = require('pixi-tiled');
/**
* Simply load a Tiled map in json format
* The map data will be loaded, parsed and a renderable Map object made available on res.tiledMap
*/
PIXI.loader.add('map.json', function(res)
{
var map = res.tiledMap;
});
PIXI.loader.load();