3D Game Programming

(C. Jardin) #1

CHAPTER 20


Project: River Rafting


For our final project, let’s build a river-rafting game in which the player needs
to navigate the raft along a river, dodging obstacles and picking up bonus
points where possible. The game will look something like this sketch:

We’ll also add a few goodies of our own.


20.1 Getting Started


We start by creating a new project in the ICE Code Editor. We use the 3Dstarter
project (with Physics) template and call it River Rafting.

We’ll want a scoreboard for the game, so let’s insert a new line after line 4,
just before the plain <script> tag, and add the following:

<script src="http://gamingJS.com/Scoreboard.js"></script>

When you’re done with this chapter, you will


  • Have made a full 3D game

  • Be able to add scoring to games

  • Understand how to warp shapes into
    something new


Prepared exclusively for Michael Powell report erratum • discuss

Free download pdf