Adding Sound

Although we could certainly build the sounds we need from scratch, you can get quite far down the road using stock, or community-contributed sounds for your game. What I wanted to do for this game is have sounds for when the spaceship explodes, when the spaceship fires a laser, when a ship fires a missile, and when a ship explodes. I spent some time browsing the SoundBible.com and OpenGameArt websites and settled on the following sounds for my version of the game. If you find something that you like better, by all means use that sound instead!

Get Beginning Facebook Game Apps Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.