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 are the four main types of backgrounds used in games ?

2:

Why is the Update() method in the Background class empty?

3:

How many stars is the StarryBackground class capable of showing?

Exercises

  1. Change the number of stars in the Roids program example to see how they impact the appearance of the starry background.

  2. Try a few different values for the twinkle delay in the Roids program example to see how they change the twinkling of the stars. You might decide that a different delay looks more realistic to you.



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