Outline the Game

Before coding, let’s think about how we can organize our code. To have made it this far in the book, you’ve written a lot of code. At times, it must have gotten difficult to move through the code to see what you’ve done. You’re not the first programmer to run into this problem, and you won’t be the last. Thankfully, you can learn from the mistakes of programmers before you.

One of the easiest ways to organize code is to treat it a little bit like writing. When you write an essay, you might start with an outline. After you have the outline, you can fill in the details.

When organizing code, it helps to write the outline first, then add the code below it. Since we’re programming, our outlines are also written in code. Type in ...

Get 3D Game Programming for Kids now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.