Getting Started

We begin by creating a new project in the ICE Code Editor. Let’s use the 3D starter project (with Physics) template (you need to change the template this time) and call it Cave Puzzle.

As you might guess, this template includes much of the physics-engine work we manually added back in Chapter 15, Project: The Purple Fruit Monster Game.

We still need to make a couple of changes before the START CODING line. First, we need to include two more JavaScript libraries—one for keeping score and one for working with the mouse. Start a new line after line 4, just before the plain <script> tag, and add the following two <script> tags:

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

Get 3D Game Programming for Kids 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.