Jump to content

Getting Started with Phaser, Tiled Maps and Map Editors


Recommended Posts

Greetings Ladies and Gents,


My name is Spider. This is my first post.


I've just started using pixi.js, and moved over to Phaser because of the added functionality of being able to more easily create a tiled world (in a map editor) and then import that map into Phaser. Unfortunately, I have no idea where to start, and would appreciate some advice.


I see in the phaser download package there is an example of using both sprite sheets and tile maps in /examples/tilemaps/mario/mario1.php. Unfortunately, there is no indication of what format / specifications / standards the tile maps and sprite sheets use, so I'm not 100% on how to create these sprite sheets and 2D worlds without doing them manually. 


Has anyone created a tutorial on how to do these.


I have a copy of Code 'n Web TexturePacker.app and MapEditor.org's Tiled.app - not sure if any of these are used or if there are better online ones that you can recommend.


Looking forward to it!



Link to comment
Share on other sites

I think they are re doing the whole tilemap system for 1.07,

But i used MapEditor.org's Tiled to load the map. When you export from Tiled, you can export to JSON, it creates a png of the tileset you used and

a json file.

then you can use both of these files to replicate the mario example.I messed around with https://github.com/photonstorm/phaser/blob/master/examples/tilemaps/mapcollide.php to get it wroking how i wanted to, plus is easier to read than the other examples.

Link to comment
Share on other sites


  • Recently Browsing   0 members

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