Atjaunināt sīkdatņu piekrišanu

3D Game Programming for Kids 2e 2nd edition [Mīkstie vāki]

3.90/5 (31 ratings by Goodreads)
  • Formāts: Paperback / softback, 374 pages, height x width x depth: 275x180x25 mm
  • Izdošanas datums: 27-Sep-2018
  • Izdevniecība: The Pragmatic Programmers
  • ISBN-10: 1680502700
  • ISBN-13: 9781680502701
  • Mīkstie vāki
  • Cena: 52,76 €
  • Grāmatu piegādes laiks ir 3-4 nedēļas, ja grāmata ir uz vietas izdevniecības noliktavā. Ja izdevējam nepieciešams publicēt jaunu tirāžu, grāmatas piegāde var aizkavēties.
  • Daudzums:
  • Ielikt grozā
  • Piegādes laiks - 4-6 nedēļas
  • Pievienot vēlmju sarakstam
  • Formāts: Paperback / softback, 374 pages, height x width x depth: 275x180x25 mm
  • Izdošanas datums: 27-Sep-2018
  • Izdevniecība: The Pragmatic Programmers
  • ISBN-10: 1680502700
  • ISBN-13: 9781680502701
You know what's even better than playing games? Programming your own! Make your own online games, even if you're an absolute beginner. Let your imagination come to 3D life as you learn real-world programming skills with the JavaScript programming language - the language used everywhere on the web. This new edition is completely revised, and takes advantage of new programming features to make game programming even easier to learn. Plus, new effects make your games even cooler. When you're done, you're going to be amazed at what you can create.



Jump right in! Start programming cool stuff on page 1. Keep building new and different things until the very last page. This book wants you to play. Not just play games, but play with code. Play with programming. Because the best way to learn something is to have fun with it!



This second edition is updated from start to finish to make it even easier to get started programming in JavaScript. Every example has been updated to make it easier, with new example games to explore and new 3D effects that make your games even more fun! Want a red donut? You can make hundreds of them, spinning around like mad. Want to create a star field? Make a hundred or a thousand stars. Make them red, green, or blue. Explosions? Fireworks? Planets? It's up to you. And, using a code editor created especially for this book, you'll program right in your web browser. You'll see the results of your work and imagination right away - right next to the code that you just typed! Along the way, you'll pick up a ton of programming knowledge, and dive in even deeper with some more advanced chapters.



Whatever you want to do, this book has your back. Best of all, you get to create awesome games and say, "I made this!"



What You Need:



You need the latest version of the Google Chrome Web browser, available for free from https://chrome.google.com. You also need an Internet connection to access the ICE Code Editor the first time. ICE Code Editor will be loaded onto your computer, so you won't need Internet access for later projects.
Acknowledgments xiii
Introduction xv
1 Project: Creating Simple Shapes
1(16)
Programming with the 3DE Code Editor
1(3)
Making Shapes with JavaScript
4(1)
Creating Spheres
4(3)
Making Boxes with the Cube Shape
7(2)
Using Cylinders for All Kinds of Shapes
9(3)
Building Flat Surfaces with Planes
12(1)
Rendering Donuts (Not the Kind You Eat) with Torus
12(2)
Animating the Shapes
14(1)
The Code So Far
15(1)
What's Next
15(2)
2 Debugging: Fixing Code When Things Go Wrong
17(10)
Getting Started
18(1)
Debugging in 3DE: The Red X
18(1)
Debugging in 3DE: The Yellow Triangle
19(1)
Opening and Closing the JavaScript Console
20(1)
Debugging in the Console
20(2)
Common 3D Programming Errors
22(2)
Recovering When 3DE Is Broken
24(1)
What's Next
25(2)
3 Project: Making an Avatar
27(12)
Getting Started
28(1)
Smooth Chunkiness
28(1)
Making a Whole from Parts
29(1)
Breaking It Down
30(2)
Adding Feet for Walking
32(2)
Challenge: Make the Avatar Your Own
34(1)
Doing Cartwheels
34(3)
The Code So Far
37(1)
What's Next
37(2)
4 Project: Moving Avatars
39(14)
Getting Started
39(1)
Building Interactive Systems with Keyboard Events
40(1)
Converting Keyboard Events into Avatar Movement
41(2)
Challenge: Start/Stop Animation
43(1)
Building a Forest with Functions
44(3)
Moving the Camera with the Avatar
47(4)
The Code So Far
51(1)
What's Next
52(1)
5 Functions: Use and Use Again
53(14)
Getting Started
54(1)
Basic Functions
55(2)
Functions that Return Values
57(2)
Using Functions
59(2)
Breaking Functions
61(2)
Bonus #1 Random Colors
63(1)
Bonus #2 Flight Controls
64(2)
The Code So Far
66(1)
What's Next
66(1)
6 Project: Moving Hands and Feet
67(10)
Getting Started
67(1)
Moving a Hand
67(4)
Swinging Hands and Feet Together
71(1)
Walking When Moving
72(3)
The Code So Far
75(1)
What's Next
75(2)
7 A Closer Look at JavaScript Fundamentals
77(18)
Getting Started
77(1)
Describing Things in JavaScript
78(3)
Numbers, Words, and Other Things in JavaScript
81(9)
Control Structures
90(3)
What's Next
93(2)
8 Project: Turning Our Avatar
95(8)
Getting Started
95(1)
Facing the Proper Direction
95(2)
Breaking It Down
97(2)
Animating the Spin
99(1)
The Code So Far
100(1)
What's Next
101(2)
9 What's All That Other Code?
103(8)
Getting Started
103(1)
A Quick Introduction to HTML
103(2)
Setting the Scene
105(1)
Using Cameras to Capture the Scene
106(1)
Using a Renderer to Project What the Camera Sees
106(1)
Exploring Different Cameras
107(2)
What's Next
109(2)
10 Project: Collisions
111(6)
Getting Started
112(1)
Rays and Intersections
112(4)
The Code So Far
116(1)
What's Next
116(1)
11 Project: Fruit Hunt
117(12)
Getting Started
118(1)
Starting a Scoreboard at Zero
118(1)
Giving Trees a Little Wiggle
119(3)
Jumping for Points
122(2)
Making Our Games Even Better
124(3)
The Code So Far
127(1)
What's Next
127(2)
12 Working with Lights and Materials
129(14)
Getting Started
129(2)
Emitting Light
131(1)
Ambient Light
132(1)
Point Light
132(2)
Shadows
134(2)
Spotlights and Sunlight
136(3)
Texture
139(1)
Further Exploration
140(1)
The Code So Far
141(1)
What's Next
142(1)
13 Project: Phases of the Moon
143(16)
Getting Started
144(1)
The Sun at the Center
145(1)
Game and Simulation Logic
146(2)
Local Coordinates
148(3)
Multi-Camera Action!
151(1)
Bonus #1 Stars
152(2)
Bonus #2 Flying Controls
154(1)
Understanding the Phases
155(2)
Not Perfect, But Still a Great Simulation
157(1)
The Code So Far
158(1)
What's Next
158(1)
14 Project: The Purple Fruit Monster Game
159(18)
Getting Started
159(3)
Outline the Game
162(1)
Adding Ground for the Game
163(1)
Build a Simple Avatar
164(4)
Add Scoring
168(1)
Gameplay
169(5)
Improvements
174(1)
The Code So Far
175(1)
What's Next
175(2)
15 Project: Tilt-a-Board
177(18)
Getting Started
178(1)
Outline the Game
179(10)
Bonus #1 Add a Background
189(1)
Bonus #2 Make Fire!
190(2)
Challenge
192(1)
The Code So Far
193(1)
What's Next
193(2)
16 Learning about JavaScript Objects
195(12)
Getting Started
195(1)
Simple Objects
196(2)
Properties and Methods
198(1)
Copying Objects
199(1)
Constructing New Objects
200(3)
The Worst Thing in JavaScript: Losing this
203(1)
Challenge
204(1)
The Code So Far
205(1)
What's Next
205(2)
17 Project: Ready, Steady, Launch
207(14)
Getting Started
208(1)
The Launcher
209(4)
Scoreboard
213(1)
Baskets and Goals
213(4)
Wind!
217(2)
The Code So Far
219(1)
What's Next
219(2)
18 Project: Two-Player Games
221(14)
Getting Started
222(1)
Two Launchers
222(5)
Two Scoreboards
227(3)
Teaching Baskets to Update the Correct Scoreboard
230(1)
Sharing a Keyboard
231(2)
A Complete Reset
233(1)
The Code So Far
234(1)
What's Next
234(1)
19 Project: River Rafter
235(26)
Getting Started
235(2)
Pushing and Pulling Shapes
237(5)
Rough Terrain
242(2)
Digging a River
244(4)
Scoreboard
248(1)
Build a Raft for Racing
249(1)
Resetting the Game
250(1)
Keyboard Controls
251(1)
The Finish Line
252(2)
Bonus: Keeping Score
254(6)
The Code So Far
260(1)
What's Next
260(1)
20 Getting Code on the Web
261(10)
The Mighty, Mighty Browser
261(4)
Free Websites
265(1)
Putting Your Code on Another Site
265(4)
The Code So Far
269(1)
What's Next
270(1)
A1 Project Code
271(58)
Code: Creating Simple Shapes
271(2)
Code: Playing with the Console and Finding What's Broken
273(1)
Code: Making an Avatar
273(1)
Code: Moving Avatars
274(2)
Code: Functions: Use and Use Again
276(2)
Code: Moving Hands and Feet
278(3)
Code: A Closer Look at JavaScript Fundamentals
281(1)
Code: Turning Our Avatar
281(3)
Code: What's All That Other Code?
284(1)
Code: Collisions
284(4)
Code: Fruit Hunt
288(6)
Code: Working with Lights and Materials
294(2)
Code: Phases of the Moon
296(3)
Code: The Purple Fruit Monster Game
299(4)
Code: Tilt-a-Board
303(4)
Code: Learning about JavaScript Objects
307(3)
Code: Ready, Steady, Launch
310(5)
Code: Two-Player Ready, Steady, Launch
315(6)
Code: River Rafter
321(5)
Code: Getting Code on the Web
326(3)
A2 JavaScript Code Collections Used in This Book
329(6)
Three.js
329(1)
Physijs
329(1)
Controls
330(1)
Noise
331(1)
Scoreboard.js
331(1)
Shader Particle Engine
331(1)
Sounds.js
332(1)
Tween.js
332(3)
Bibliography 335(2)
Index 337
Chris Strom is a relentless public learner, with more than 1,000 blog posts serving as research notes for his writing. His books include Dart for Hipsters, The SPDY Book, and Recipes with Backbone. He has more than ten years of experience programming in Perl, Ruby, JavaScript, and whatever his current obsession happens to be. Chris lives in Baltimore, Maryland with his wife, three children, and a goldfish named Martin Tanner.