Challenge 7: Shooting Zombies
Ready for another challenge?
Download the Shooting Zombie Project Files. This project was adapted from the previous Shooting Monkeys lessons.
Add sounds for:
- Background music to set the tone of the game.
- Gunshot, or something similar, for when any click is made.
- Splatter, or something similar, for when a zombie is hit.
- Moan, or something similar, for when the number of zombies increases.
If any of your sounds need to be played again before they have had time to finish playing the first time, you need to set the playhead for the audio file back to the beginning so that the play() function does not just continue playing from where the playhead currently is. For example:
sndGunshot.currentTime = 0;
Get insired when you are finished by playing some Flappy Bird MMO.