Code loaded from "{{src}}". Starting at line number {{line_number}}.
The
ICE Code Editor,
which is used throughout
3D
Game Programming for Kids,
can also be used on web pages to illustrate progressing
concepts. The two live code editors below
are added to the document with
<ice-code-editor>
tags, thanks to the power of
Polymer.
This is a work in progress. If you are interested in learning more, I am currently writing an amazing book on Polymer titled, Patterns in Polymer. If you want to help, #pairwithme!
The live demo below shows some simple Three.js shapes. What do I mean by live? Change the numbers in the code below and see the shapes change size and position!
Where's the fun in shapes that just sit there? Let's animate!
Play with animation! What happen if you change the donut
rotation values on line 62 to 8*t, t, 0
?
Experiment with any of these numbers!
Challenge: Can you animate movement as well as rotation?
These examples are just the first chapter in 3D Game Programming for Kids. There is also game programming, space simulations, sounds, WebGL, physics and so much more. Buy it from The Pragmatic Programmers today!
Made with love by Chris Strom.