Workshop


The Workshop is designed to help you anticipate possible questions, review what you've learned, and begin learning how to put your knowledge into practice. The answers to the quiz can be found in Appendix A, "Quiz Answers."

Quiz

1:

Why is it a problem that the Win32 PlaySound() function doesn't support wave mixing?

2:

What is the difference between synchronous and asynchronous wave playback?

3:

How do you stop a wave from playing once it has started?

Exercises

  1. Try replacing a couple of the wave sounds in the Brainiac 2 game with some sounds of your own.

  2. Think of another game event in the Brainiac 2 game that doesn't currently have a sound, and then add a wave sound for it. This isn't necessarily as difficult as you might think. For example, how about a new wave sound to indicate that the player made two matches in a row? Or maybe a wave sound to reward the player for beating the previous score?



Sams Teach Yourself Game Programming in 24 Hours
Sams Teach Yourself Game Programming in 24 Hours
ISBN: 067232461X
EAN: 2147483647
Year: 2002
Pages: 271

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net