HTML5 Game Development for Dummies 3175723993, 9781118074763, 9781118261446, 9781118222614, 9781118236529, 1118074769

Create games with graphics that pop for the web and mobile devices!HTML5 is the tool game developers and designers have

237 15 8MB

English Pages 370 [387] Year 2013

Report DMCA / Copyright

DOWNLOAD PDF FILE

Table of contents :
HTML5 Game Development For Dummies®......Page 1
About the Author......Page 5
Table of Contents......Page 9
Introduction......Page 17
What You Will Need......Page 18
How to Read This Book......Page 19
How This Book Is Organized......Page 20
We Even Use the Internet Thingy!......Page 21
Where to Go from Here......Page 22
Part I: Building the Foundation......Page 23
Chapter 1: Playing on the Web......Page 25
Building the Framework......Page 26
Setting Up Your Workshop......Page 27
Building Your First Game......Page 30
Building a Basic Page......Page 31
Chapter 2: Talking to the User......Page 51
Making an Interactive Form......Page 52
Adding JavaScript to Your Page......Page 53
Building the Word Story Game......Page 71
Chapter 3: Coding Like a Pro......Page 79
Working with Variables......Page 80
Making Choices with if......Page 84
Managing Repetition with for loops......Page 88
Building While Loops......Page 95
Sending Data to and from Functions......Page 102
Using Arrays to Simplify Data......Page 106
Creating Random Numbers......Page 111
Building the Number Guesser......Page 116
Part II: Basic Game Development......Page 127
Using a Game Engine......Page 129
Building an Animation with simpleGame.js......Page 131
Considering Objects......Page 138
Bringing Your Game......Page 140
Building Your Own Sprite Objects......Page 149
Sound Programming Principles......Page 157
Game Programming’s Greatest Hits!......Page 160
It’s All About Timing . . .......Page 166
Building a Real Game......Page 169
Planning Your Game......Page 170
Programming On the Fly......Page 172
Clearly, We Need an Amphibian......Page 175
Combining the Frog and the Fly......Page 180
When Sprites Collide......Page 183
Working with Multiple Flies......Page 186
Adding the Final Touches......Page 190
Part III: Diving Deeper......Page 195
Physics — Even More Fun Than You Remember......Page 197
Lost in Space......Page 199
Don’t Be a Drag — Adding Drag Effects......Page 202
Do You Catch My Drift?......Page 206
Recognizing the Gravity of the Situation......Page 209
Houston, We’ve Achieved Orbit......Page 212
Does This Car Come with a Missile Launcher?......Page 218
Building a Multi-State Animation......Page 222
Using HTML5 as a Mobile Language......Page 227
Putting Your Game on a Server......Page 229
Making Your Game App-Ready......Page 236
Managing Alternate Input......Page 241
Reading the Virtual Joystick......Page 247
Overview of SimpleGame......Page 263
The Scene Object......Page 264
The Sprite Class......Page 266
Utility Classes......Page 272
Making the Game Engine Your Own......Page 276
Part IV: The Part of Tens......Page 277
Dia Diagramming Tool......Page 279
GIMP — A Powerful Image Editor......Page 280
Ari’s SpriteLib......Page 282
Reiner’s Tilesets......Page 283
OpenGameArt......Page 284
Blender......Page 285
Audacity — Useful for Sound Effects......Page 286
SoundJay.com......Page 287
BFXR Incredible Eight-Bit Sound Effects......Page 288
InkScape......Page 289
Chapter 12: Ten Concepts Behind simpleGame......Page 291
Using the Canvas Tag......Page 292
Creating an Animation Loop......Page 294
Angles in the Outfield......Page 296
Transformations in Canvas......Page 297
Vector Projection......Page 301
Using the Sound Object......Page 306
Reading the Keyboard......Page 307
Managing the Touch Interface......Page 310
Collision Detection......Page 314
Boundary Checking......Page 317
Chapter 13: Ten Game Starters......Page 321
Lunar Lander......Page 322
Mail Pilot......Page 325
The Marble-Rolling Game......Page 328
Whack-a-Mole......Page 332
Jump and Run on Platforms......Page 336
Pong — the Granddaddy of Them All......Page 339
I’m a Fighter, Not a Lover — RPGs......Page 344
Tanks — and You’re Welcome!......Page 349
Miles and Miles of Tiles and Tiles......Page 355
Tic-Tac-Toe Is the Way to Go......Page 362
Index......Page 369

HTML5 Game Development for Dummies
 3175723993, 9781118074763, 9781118261446, 9781118222614, 9781118236529, 1118074769

  • 0 0 0
  • Like this paper and download? You can publish your own PDF file online for free in a few minutes! Sign Up
File loading please wait...
Recommend Papers