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
Understand how to add a second level to our game and link them together by adding an exit to our first level.
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
This was used to preload all our
assets instead of letting the LevelOne
0:00
scene do it.
0:00
In this video, we're going to add
a way to link our levels together.
0:01
Right now however, we only have one level
in our game, so there's nothing for
0:05
it to link to.
0:09
Let's create another level.
0:10
I've already created
a Tiled JSON file to use,
0:12
which you can download below,
under the teacher's notes.
0:16
Once you've downloaded it,
unzip the folder, and
0:20
place the file under the data
directory in the assets folder.
0:23
It should be called level_2.json,
just like this.
0:27
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