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 to incorporate audio files, in this case just sound effects, to enhance the immersive experience for players, adding another layer of engagement to your game.
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 are going to add
some sound effects to our game.
0:00
Let's open up the Explorer in
VS Code by pressing Cmd+B and
0:01
open up the assets folder.
0:04
In this folder,
you'll notice there are three images and
0:07
there are also three MP3 files.
0:10
These are the sound effects that will
play for different events in our game.
0:13
The first you'll see is
called ping_brick and
0:16
this should play when
the ball hits a brick.
0:19
The next is called ping_paddle, and this
will play when the ball hits a paddle.
0:22
Finally, there's ping_wall,
0:28
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