Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

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

 Share

  • Recently Browsing   0 members

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