Getting Started

Start a new project in 3DE. Choose the 3D starter project (with Physics) template and name this project Tilt-a-Board.

Gravity and Other Setup

To get “physics” working in the Purple Fruit Monster game, we needed to do a little work before the START CODING ON THE NEXT LINE line. Without enabling physics, shapes won’t fall, roll, bounce, slide, or do anything like real-world things do.

In this project, we’ve chosen a template that already includes the setup needed for the physics engine to work. Double-check that you see the physics code in the “Tilt-a-Board” project that you just created.

​ <body><​/body​​>​
​ <script src=​"/three.js"​><​/script​​>​
​​①​
​ <script src=​"/physi.js" ...

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.