…With our game functionality complete, all we need now is to bring more life into…the game world, through the inclusion of music and sound effects.…So to do this, we need to load in all of our sound effects into preloaded JS.…Inside of our Preload function here, I am going to paste in from our…code snippets panel, the different pieces of music we want to actually use.…So we load, and this time we're loading audio for each of these files.…And we're tagging them, so one will be called explosion audio,…another one hurt audio, select audio, and game audio.…And these simply point to the audio folders,…and the particular mp3 file that's associated with each of these sounds.…There's one more thing we can do in the preloader to make…things a little more solid.…And that's in the Update function here.…Right now we're just saying red equals true, but something we…can do is actually check to make sure that the sound is not only loaded up but…is also fully decoded before we run our start menu.…So, to do this, we say if this.cache isSoundDecoded.…
- Downloading the Phaser framework
- Creating your first Phaser project
- Building the preloader and menu states
- Creating and spawning entities
- Working with particles and emitters
- Detecting and handling collisions
- Detecting "game over"
- Adding sound effects and text
- Preparing for mobile deployment
Skill Level Beginner
1. Setting Up Phaser
2. Configuring Loaders and States
3. Populating the World
5. Wrapping Things Up
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.