Code: River Rafter
This is the final version of the game code from Chapter 19, âProject: River Rafterâ. It is very long. It includes a few extras to play around with, as well.
â | <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> |
â | <script> |
â | â// Physics settingsâ |
â | Physijs.scripts.ammo = â'/ammo.js'â; |
â | Physijs.scripts.worker = â'/physijs_worker.js'â; |
â | |
â | â// The "scene" is where stuff in our game will happen:â |
â | âvarâ scene = ânewâ Physijs.Scene(); |
â | scene.setGravity(ânewâ THREE.Vector3( ... |
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.