Sound effects
A sound file plays the moment something happens. Played again quickly, the sounds overlap instead of cutting each other off.
Tap the example to hear it. Browsers only play sound after a tap.
Play the sound "jump" when the character jumps.
View code
game.playSound("jump");