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 the SA_ADDSPRITE sprite action?

2:

Why is it necessary to derive a class from the Sprite class in order for it to take advantage of the SA_ADDSPRITE sprite action?

3:

What role does the AlienSprite class play in the Space Out game?

Exercises

  1. Modify the Update() method in the AlienSprite class so that the aliens fly around in different flight patterns.

  2. Create an entirely new alien and add it to the Space Out game. This involves creating an animated bitmap image for the alien, as well as adding appropriate code throughout the Space Out game code, including the AlienSprite class.



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