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's the difference between demo mode and a splash screen?

2:

What's the purpose of the _iGameOverDelay global variable in the Space Out 3 game?

3:

If the _iGameOverDelay global variable is set to 300, how much time does it end up causing for the delay?

Exercises

  1. Experiment with adding more or less aliens to demo mode in the Space Out 3 game to get a different effect. You might also consider changing the AddAlien() function so that the aliens behave a little differently when in demo mode.

  2. Add the car sprite to demo mode in the Space Out 3 game, and just have it move randomly back and forth on the screen to simulate a human player who isn't too smart.



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