Prox Posted April 13, 2017 Report 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 ! Quote Link to comment Share on other sites More sharing options...
Prox Posted April 13, 2017 Author Report 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); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.