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 name of the Win32 function used to open and create files?

2:

How do you read and write data using files in Windows?

3:

How do you clear the high score list in the Space Out 4 game?

Exercises

  1. Try opening the HiScores.dat file in a text editor and modifying the high score list by hand. Although this isn't a very honest way to register a high score, you might have some fun tweaking a high score to play a trick on a friend.

  2. Modify the Space Out 4 game so that it includes more than the top five scores in the high score list. You'll need to modify the splash screen image to make room for the new scores, as well as modify the storage of the scores, and how they are read from and written to a file.



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