3D Game Programming

(C. Jardin) #1

That’s It!


You should have a fully functioning, space-age tilt-a-game working at this
point. Use the arrow keys to tilt the board and score.

16.4 The Code So Far


If you would like to double-check the code in this chapter, turn to Section
A1.16, Code: Tilt-a-Board, on page 249.

17.6 What’s Next


That was our best game yet. We combined our skills with writing 3D games
with our new skills of making shadows and materials. The tilt-a-board game
is really pretty to look at. It certainly took a lot of time to code, but it was
worth it.

In the next chapters we’ll dig a little more into JavaScript. Specifically, we’ll
cover objects, which we’ve been using all along but haven’t talked about
making. Once we have that skill, we’ll build a couple more very cool games.

report erratum • discuss

The Code So Far • 157


Prepared exclusively for Michael Powell

Free download pdf