Jump to content

phaser maps using toast editor


Node231
 Share

Recommended Posts

Hey all!

I've created a level using Toast Editor and want to import it into phaser. Toast editor even has a special option for phaser as you can see here!

 

 

My question is, once I have my level designed and I  export the file, say I have something plain like:

(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,0,0,0);

how do I go about adding this to phaser? Do I need to add the tile and give the name '0' in the preloader? How would I make phaser create the level?

 

 

Sorry for the noob question, it will be the last thing I ask here. Thank you for any help!

Link to comment
Share on other sites

43 minutes ago, WombatTurkey said:

Don't want to be that guy, but why use the Toast Editor? Phaser can read json files generated from the map tiled editor, and it supports much more features.  

This sounds great!

I'm new to JS and phaser so I apologize if this a supremely stupid question, but

  1. Is the map tiled editor you are talking about this? http://www.mapeditor.org/
  2. Just wondering what features it can support? Something that's been bugging me in development so far is that I have been using invisible sprites to act as a "ground", can I bypass this?

What you suggested sounds nice and I'll check it out tomorrow, do you know any good examples or tutorials?

 

Thanks a bunch! 

Link to comment
Share on other sites

Haven't done any tiled map stuff, so can't really help on the issue: But I found this video on importing from Tiled, maybe it will give you a hint into using it in Phaser coupled with the examples for Tiled Maps.

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...