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 use gravity provided by the Arcade physics engine to allow our player to jump.
Resources
- jsDoc
- Private class features
- Phaser Docs
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
There are a few potential
issues with the code right now.
0:00
For example, if we were to come back
to this code in a few months or
0:02
maybe years time without using Phaser, and
0:06
look at some of the lines of codes in
the create or even the update method.
0:08
It would be difficult to tell
at a glance which methods and
0:13
properties were created by us and
which ones belong to Phaser.
0:16
For example, on line 14,
we know that this.input comes from Phaser,
0:21
and on line 16 that
this.player comes from us.
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