Summary

[ LiB ]

Well, that was one heck of a chapter. We learned about loops , functions, arrays, and types, and created our first animated game! This chapter is probably one of the most important in the book. You learned the basics of any Blitz Basic program, and you are now able to write any text-based program you can think of. I suggest you take a break now, and try to digest and understand what you have read. You might want to reread the parts you don't understand, and go through the listings again. Also, go back and make sure you understand the full game from Chapter 1. It uses everything you have learned here, with a small bit of graphics code added.

I have an exercise for you, if you feel like expanding on your learning. When you play the final game from this chapter, you may notice that every once in a while, the ball moves only straight up and down, or slows to a complete stop. Try to make the ball never slow down too much or stop moving left and right. (Hint: Try randomizing directionx to make sure it does not move straight up and down.)

In this chapter, we went over the following concepts:

  • Loops

  • Functions

  • Arrays

  • Types

  • Creating Textanoid

Okay, this chapter is now officially over. Get some rest and have some fun, or whatever. I'll be waiting for you whenever you feel like learning some more.

[ LiB ]


Game Programming for Teens
Game Programming for Teens
ISBN: 1598635182
EAN: 2147483647
Year: 2004
Pages: 94
Authors: Maneesh Sethi

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net