Video Thumbnail

Sign up for a plan to instantly unlock all premium lessons.

UNLOCK LESSON

Premium Features

Download Video

Sound effects and music

Published 2 years ago

It's time to take our game to the next level by adding both sound effects and music. Here, we'll cover everything from finding audio, importing audio cleanly, and playing audio when certain game actions take place. We'll also be using the npm library howler to fix a native JS Audio() object bug.

Step by step, the process looks like this:

  • Move files to audio folder within project

  • Add file loader for mp3s

  • Create separate file for loading audio

  • Add fire-flower shoot audio

  • Add howler

  • Import / export all files using howler with correct volumes

  • Place in correct positions

  • Autoplay and loop background music

  • Stop background music on course complete

Comments

Want to participate?

Create a free Chris Courses account to begin

Login
XxCFxX posted 2 years ago
0

Providing the lift to launch your development career

© 2024 Chris Courses. All rights reserved.