Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
3D Game Programming for Kids, Sec ond Edition
About the Pragmatic Bookshelf
Table of Contents
Early praise for 3D Game Programming for Kids, Second Edition
Acknowledgments
Introduction
How I Learned to Program (and Why That Matters to You)
How YOU Can Learn to Program
Getting Help
What You Need for This Book
What Is JavaScript?
What’s New in the Second Edition?
What This Book Is Not
Let’s Get Started!
Programming with the 3DE Code Editor
Making Shapes with JavaScript
Creating Spheres
Making Boxes with the Cube Shape
Using Cylinders for All Kinds of Shapes
Building Flat Surfaces with Planes
Rendering Donuts (Not the Kind You Eat) with Torus
Animating the Shapes
The Code So Far
What’s Next
Getting Started
Debugging in 3DE: The Red X
Debugging in 3DE: The Yellow Triangle
Opening and Closing the JavaScript Console
Debugging in the Console
Common 3D Programming Errors
Recovering When 3DE Is Broken
What’s Next
Getting Started
Smooth Chunkiness
Making a Whole from Parts
Breaking It Down
Adding Feet for Walking
Challenge: Make the Avatar Your Own
Doing Cartwheels
The Code So Far
What’s Next
Getting Started
Building Interactive Systems with Keyboard Eve nts
Converting Keyboard Events into Avatar Movemen t
Challenge: Start/Stop Animation
Building a Forest with Functions
Moving the Camera with the Avatar
The Code So Far
What’s Next
Getting Started
Basic Functions
Functions that Return Values
Using Functions
Breaking Functions
Bonus #1: Random Colors
Bonus #2: Flight Controls
The Code So Far
What’s Next
Getting Started
Moving a Hand
Swinging Hands and Feet Together
Walking When Moving
The Code So Far
What’s Next
Getting Started
Describing Things in JavaScript
Numbers, Words, and Other Things in JavaScript
Control Structures
What’s Next
Getting Started
Facing the Proper Direction
Breaking It Down
Animating the Spin
The Code So Far
What’s Next
Getting Started
A Quick Introduction to HTML
Setting the Scene
Using Cameras to Capture the Scene
Using a Renderer to Project What the Camera S ees
Exploring Different Cameras
What’s Next
Getting Started
Rays and Intersections
The Code So Far
What’s Next
Getting Started
Starting a Scoreboard at Zero
Giving Trees a Little Wiggle
Jumping for Points
Making Our Games Even Better
The Code So Far
What’s Next
Getting Started
Emitting Light
Ambient Light
Point Light
Shadows
Spotlights and Sunlight
Texture
Further Exploration
The Code So Far
What’s Next
Getting Started
The Sun at the Center
Game and Simulation Logic
Local Coordinates
Multi-Camera Action!
Bonus #1: Stars
Bonus #2: Flying Controls
Understanding the Phases
Not Perfect, But Still a Great Simulation
The Code So Far
What’s Next
Getting Started
Outline the Game
Adding Ground for the Game
Build a Simple Avatar
Add Scoring
Gameplay
Improvements
The Code So Far
What’s Next
Getting Started
Outline the Game
Bonus #1: Add a Background
Bonus #2: Make Fire!
Challenge
The Code So Far
What’s Next
Getting Started
Simple Objects
Properties and Methods
Copying Objects
Constructing New Objects
The Worst Thing in JavaScript: Losing this
Challenge
The Code So Far
What’s Next
Getting Started
The Launcher
Scoreboard
Baskets and Goals
Wind!
The Code So Far
What’s Next
Getting Started
Two Launchers
Two Scoreboards
Teaching Baskets to Update the Correct Scoreb oard
Sharing a Keyboard
A Complete Reset
The Code So Far
What’s Next
Getting Started
Pushing and Pulling Shapes
Rough Terrain
Digging a River
Scoreboard
Build a Raft for Racing
Resetting the Game
Keyboard Controls
The Finish Line
Bonus: Keeping Score
The Code So Far
What’s Next
The Mighty, Mighty Browser
Free Websites
Putting Your Code on Another Site
The Code So Far
What’s Next
Appendix 1: Project Code
Code: Creating Simple Shapes
Code: Playing with the Console and Finding What’s Broken
Code: Making an Avatar
Code: Moving Avatars
Code: Functions: Use and Use Ag ain
Code: Moving Hands a nd Feet
Code: A Closer Look at JavaScript Fundamentals
Code: Turning Our Avatar
Code: What’s All That Other Code?
Code: Collisions
Code: Fruit Hunt
Code: Working with L ights and Materials
Code: Phases of the Moon
Code: The Purple Fru it Monster Game
Code: Tilt-a-Board
Code: Learning about J avaScript Objects
Code: Ready, Steady, Launch
Code: Two-Player Ready, Steady , Launch
Code: River Rafter
Code: Getting Code on the Web
Appendix 2: JavaScript Code Collections Used in This Book
Three.js
Physijs
Controls
Noise
Scoreboard.js
Shader Particle Engine
Sounds.js
Tween.js
Bibliography
You May Be Interested In…
← Prev
Back
Next →
← Prev
Back
Next →