Sign in to follow this  

Generate Dungeon CSV

Recommended Posts

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 ! 

Share this post

Link to post
Share on other sites

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);

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.