Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Now, I hope you’re ready to take on the Bomb Catcher game! There are several places in the program code that deal with sound. See if you can find the code that loads and plays the sound effect! This will play an explosion sound any time you don’t catch the bomb! Figure 12.1 shows the game running. It’s a pretty simple game, but it is still fun, and it’s good to see how games like this work. The best way to learn is to take a simple game and make improvements to it. Can you think of any changes that would make the game more fun?
For the game in this chapter, you will need to copy the bitmap files basket.png and bomb.png and the sound file explode.wav into C:\QB64 (or wherever you have it installed).