Getting Started

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

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

We still need to make a couple of changes before the START CODING line. First, we’ll want to keep score in this mini-game, so we need to include the scoreboard.js code collection. Start a new line after line 3, just before the plain <script> tag, and add the following <script> tag:

​ <script src=​"/scoreboard.js"​><​/script​​>​

Next, we need to adjust the camera ...

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.