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 create groups of similar images in your game and understand the benefits of using groups to efficiently manage and manipulate multiple images with shared settings and properties.
Resources
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 use Phaser's grouping features to add
0:00
multiple bricks to our game.
0:02
Grouping in Phaser is similar to
grouping in something like Photoshop or
0:04
any other design software.
0:08
It makes it easy to manage and
0:10
manipulate multiple objects
as if they were one object.
0:12
As usual, to access grouping,
we'll need to use this keyword.
0:17
Let's create a new line under line 27 and
write the following code,
0:23
this.add.group with parenthesis and
a semicolon to close.
0:29
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