3D Game Programming

(C. Jardin) #1

In between the quarters and full moon, the moon is called gibbous.


When the lit side is growing, it’s said to be waxing. When it’s getting smaller,
it’s said to be waning. And now you know just about everything there is to
know about the moon’s phases. Better yet, you have your own simulation!

18.6 The Code So Far


In case you would like to double-check the code in this chapter, it’s included
in Section A1.14, Code: Phases of the Moon, on page 243.

And no, it doesn’t include the challenge of using a frame of reference for Earth.
Do it yourself!

15.5 What’s Next


This ends the space simulations in the book. Congratulations—you have
made it through a grand tradition in 3D programming. Hopefully you picked
up a thing or two about space. More importantly for your computer skills,
you’ve been introduced to the concept of frame of reference, which we’re def-
initely going to use in our games.

Speaking of games, let’s get started on some in the next chapter!


Chapter 14. Project: Phases of the Moon • 132


Prepared exclusively for Michael Powell report erratum • discuss

Free download pdf