Join Joseph Labrecque for an in-depth discussion in this video Music and sound effects, part of HTML5 Game Development with Phaser.
- View Offline
…Phaser includes the ability to use multiple sound channels in our game.…This means we should be able to have background music.…Along with a variety of sound effects all firing of simultaneously.…Any modern browser should be able to handle multiple sound channels just fine.…So we will be employing direct sound files within our project.…To generate sound files, there are a number of different tools out on…the web and things that you can of course run on your desktop.…This is one that's hosted at superflashbros.net.…And the project is called as3sfxr.…
One of the nice things about this particular generator is that it…has a lot of settings that work quite well for games.…You can see here under this menu that we have things that are tweaked to pick-ups,…lasers, explosions, and so forth.…We can also go through and, when we select this item it will generate,…using different properties, different variations of those sounds.…So for instance, clicking on this once,…we get one particular sound, clicking on it again we get another.…
- 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