Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Game Development with Phaser!
You have completed Game Development with Phaser!
Preview
Learn how to load a Tiled level into your game using Phaser. This includes importing the Tiled map data, tilesets, and specific layers into our Phaser game.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
In this video, we're going to learn
how to load that level into our game.
0:00
Let's start by looking at the file
that was created by Tiled.
0:01
This is actually a JSON file,
but it has a .tmj extension,
0:06
so that Tiled can recognise it.
0:10
However, if we give
this a .json extension,
0:14
Tiled would still be able to open it, and
0:17
would also benefit from some syntax
highlighting, so, let's do this now.
0:19
I'm going to right-click on the file,
select Rename, and remove tmj and
0:26
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up