Summary

Well, this has been 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 Blitz3D 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, read and try to understand the full game from Chapter 1. It uses everything you have learned here with a small bit of graphics code added. Again, you can ask for help online at www.maneeshsethi.com or by e-mailing me at [email protected] if you have any questions.

I have an exercise for you, if you feel like expanding on your learning. When you play the final game from this chapter, you might notice that every once in a while, the ball moves only straight up and down or slows to a complete stop. Try to fix this issue so the ball cannot 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.)

This chapter covered 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.

 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.136.23.239