Prox Posted April 13, 2017 Share Posted April 13, 2017 Hi everyone, I'm generating a random dungeon that I convert to CSV ( with Array.join ) but I can't find how to make it works with the Game.load.tilemap because the file doesn't need to be download as it's just a string in the program. How can I do to make my CSV string work with the pahser loader ? Thanks ! Link to comment Share on other sites More sharing options...
Prox Posted April 13, 2017 Author Share Posted April 13, 2017 Error fixed, Phaser.Loader.tilemap(key, url, data, format) can get an url or data as string. So I put url to null and data to my generated CSV game.load.tilemap('map', null, Dungeon.toCSV(), Phaser.Tilemap.CSV); Link to comment Share on other sites More sharing options...
Recommended Posts