titmael Posted May 26, 2014 Share Posted May 26, 2014 Hi, I'm dynamicaly creating a cave and transform it in json to load it with tilemap. Here is the json : http://tny.cz/04da6f7b In my Preloader.js filethis.game.load.image('tiles', 'images/cave.png');Note : cave.png is well loaded and is a 64x32 image. And in my Game.jscreate: function () { this.game.load.tilemap('cave', null, json, Phaser.Tilemap.TILED_JSON); var tileMap = this.game.add.tilemap('cave'); tileMap.addTilesetImage('cave-world', 'tiles'); var layer = tileMap.createLayer('cave_walls'); layer.resizeWorld();}Nothing appears on the canvas, and don't know why, no warning or error in JS console. Here is what it looks like when manually rendered : Thx Link to comment Share on other sites More sharing options...
titmael Posted May 26, 2014 Author Share Posted May 26, 2014 GOD DAMNED !!!! In my JSON : tileHeight --> tileheight And everything's good Link to comment Share on other sites More sharing options...
rich Posted May 27, 2014 Share Posted May 27, 2014 titmael 1 Link to comment Share on other sites More sharing options...
Recommended Posts