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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.