Getting Started

We begin by creating a new project in the 3DE Code Editor. We use the 3D starter project (with Physics) template and call it River Rafter.

At the top of our code, let’s pull in some code collections that are going to help us out.

​ <body></body>
​ <script src=​"/three.js"​></script>
​ <script src=​"/physi.js"​></script>
»<script src=​"/controls/OrbitControls.js"​></script>
»<script src=​"/scoreboard.js"​></script>
»<script src=​"/noise.js"​></script>

The orbit controls, which we used in Chapter 12, ​Working with Lights and Materials​, will let us look around the world that we’ll build. We know the scoreboard code well by now. The noise code is new. It will let us do some pretty wild stuff to ...

Get 3D Game Programming for Kids, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.