Jump to content

Getting Started with Phaser, Tiled Maps and Map Editors


spider
 Share

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!

 

Spider

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

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...
 Share

  • Recently Browsing   0 members

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