Sign in to follow this  
Prox

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.