Errata for 3D Game Programming for Kids
We try to keep our books accurate, but sometimes mistakes creep in. This page lists the errors submitted by our astute readers. If you've found a new error, please submit it.
The latest version of the book is B4.0, released 15 days ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.
|Paper||Description||Found in||Fixed in|
#50885: This is a generic suggestion across most of the examples that I have been working through. Understanding that this is a book "for Kids", you want to balance the amount of math that is required to do this.... :-)
Most of your code snippets use hard coded, absolute placement of objects rather than calculating dynamically the positions. For example, when you write your code to create a tree, you make a cylinder of size 50, a top of 150, and then place the top on at a y-offset of 175.
My suggestion would be to change the examples to use variables and then calculate the offsets required:
top.position.y = cylinderSize + topSize/2; // or some such
I've been converting my examples to their formulaic equivalents just so I can play with sizing of my designs as I go, as well as forcing myself to think through how to do this in a more genericized way....
Just a suggestion!--Sean Lynch
#50885: This is a generic suggestion across most of the examples that I have been working through. Understanding that this is a book "for Kids", you ...more...Chris Strom says: That's a good suggestion and one that I have been wondering about. I do not have a good feel for how easy it is for the very new programmer to process the concept of variables like that, so I have been sticking with concrete numbers. To be sure, if I were coding this myself, I would definitely use your approach. I'm going to keep this open and revisit in a week or so...
#50846: Sorry I am being pedantic!
#50846: Sorry I am being pedantic! In the keydown listener function there the keydown code is logged to the console only if its not 'E' (only one e...more...