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:

Why would you want to store bitmaps as resources in an executable program, as opposed to using them straight from files?

2:

What is the purpose of the color table in a bitmap?

3:

What kind of bitmap is supported by the Bitmap class created in this hour ?

Exercises

  1. Modify the Slideshow program example so that it uses your own bitmap images as slides. Make sure to change the number of slides in the program to accommodate how many you're using. Also, if you choose to use a different size for your images, simply change the size of the game screen to match when you create the game engine.

  2. Alter the frame rate of the Slideshow program example to see how it impacts the speed of the slide images being drawn. You should notice the program reach a maximum speed, after which it doesn't really make any difference how fast you set the rate. In other words, there are limits as to how fast of a frame rate you can get.



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