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:

What is the purpose of a bounding rectangle?

2:

How does a bounds action work?

3:

Why does the Sprite class contain a pointer to a Bitmap object?

Exercises

  1. Try modifying the velocities of the golf ball sprites in the Fore program example to see how it changes their movements.

  2. Create a new sprite of a bird that flies across the top of the screen in the Fore program example. (Hint: This isn't as hard as it sounds ”just study the code for the golf ball sprites and take note of what it takes to incorporate a new sprite into the mix.)



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