HTML and CSS Reference
Step 6: Create shape entities with 3D data
You need to set up an extendable class to create entities that contain 3D data. You'll use
with a template object. Think of templates as molds for all of your game's reusable visual
assets, such as players, enemies, and particles. Add the next listing in a file right next to
core.js called template.js.