- Phaser ver :2.6.2
- Tiled map editor:v-0.18.2 and v-1.01
code is ok
use this Tiled map editor version show Error log
Uncaught TypeError: Cannot read property '2' of undefined
at Object.parseTiledJSON (phaser.min.js:26)
at Object.parse (phaser.min.js:26)
at new c.Tilemap (phaser.min.js:25)
at c.GameObjectFactory.tilemap (phaser.min.js:15)
at Object.create ((index):30)
at c.StateManager.loadComplete (phaser.min.js:10)
at c.Loader.finishedLoading (phaser.min.js:20)
at c.Loader.processLoadQueue (phaser.min.js:20)
at c.Loader.asyncComplete (phaser.min.js:20)
at c.Loader.fileComplete (phaser.min.js:20)
- update date(2017-06-22)
- click the
Embed Tileset
button → export JSON file - then will be ok
then I compared two map.json,I found the v1-json tilesets
less than v0-json.
so maybe this place make bug.
want to know the reason, need to read the Phaser source code.