Home > Articles > Programming > Games

  • Print
  • + Share This
This chapter is from the book

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.

  • + Share This
  • 🔖 Save To Your Account