close menu
Bookswagon-24x7 online bookstore
close menu
My Account
24%
The Web Game Developer's Cookbook: Using JavaScript and HTML5 to Develop Games(English)

The Web Game Developer's Cookbook: Using JavaScript and HTML5 to Develop Games(English)

          
5
4
3
2
1

Out of Stock


Premium quality
Premium quality
Bookswagon upholds the quality by delivering untarnished books. Quality, services and satisfaction are everything for us!
Easy Return
Easy return
Not satisfied with this product! Keep it in original condition and packaging to avail easy return policy.
Certified product
Certified product
First impression is the last impression! Address the book’s certification page, ISBN, publisher’s name, copyright page and print quality.
Secure Checkout
Secure checkout
Security at its finest! Login, browse, purchase and pay, every step is safe and secured.
Money back guarantee
Money-back guarantee:
It’s all about customers! For any kind of bad experience with the product, get your actual amount back after returning the product.
On time delivery
On-time delivery
At your doorstep on time! Get this book delivered without any delay.
Notify me when this book is in stock
Add to Wishlist

About the Book

Want to start building great web games with HTML5 and JavaScript? Moving from Flash or other game platforms?  Already building HTML5 games and want to get better and faster at it? This guide brings together everything you need: expert guidance, sample projects, and working code!

 

Evan Burchard walks you step-by-step through quickly building 10 popular types of games. Each chapter implements  a game within a well-understood genre; introduces a different free, open source, and easy-to-use HTML5 game engine; and is accompanied with full JavaScript source code listings.

 

Each game recipe uses tested and well-proven patterns that address the development challenges unique to that genre, and shows how to use existing tools and engines to build complete substantial game projects in just hours.  Need a quick JavaScript primer? Evan Burchard provides that, too!

 

Coverage includes

 

• Mastering an essential HTML5/JavaScript game development toolset: browser, text editor, terminal,  JavaScript console, game engine, and more

• Accelerating development with external libraries and proven patterns

• Managing browser differences between IE, Firefox, and Chrome

• Getting up to speed on web development with a QUIZ game built with JavaScript, HTML, CSS, and JQuery

• Creating INTERACTIVE FICTION “gamebooks” that leverage new CSS3 features and impress.js

• Building PARTY games around the lightweight atom.js engine

• Developing PUZZLE games with the easel.js graphics rendering engine

• Writing PLATFORMERS with melon.js and its integrated tilemap editor

• Coding intense 2-player FIGHTING games for web browsers with game.js

• Building a SPACE SHOOTER with the jQuery-based gameQuery game engine

• Implementing pseudo-3D techniques like ray casting for an FPS (First Person Shooter) style game

• Producing a 16 bit RPG (Role Playing Game) complete with interfaces for dialog, inventories,  and turn-based battles with enchant.js

• Building an isometric RTS (Real Time Strategy) game that incorporates server components along with  node.js, socket.io, and crafty.js

• Engaging players with content that encourages exploration

 

Turn to The Web Game Developer’s Cookbook for proven, expert answers–and the code you need to implement them. It’s all you need to jumpstart any web game project!

 

 



Table of Contents:

Preface xiv

Acknowledgments xv

About the Author xvi

Introduction 1

Audience for This Book 2

Coding Style Conventions Used In This Book 2

How This Book Is Organized 3

How To Use This Book 4

1  Quiz 5

Recipe: Making the Questions    6

Recipe: Hiding and Showing Your Quiz 12

Recipe: Getting Your Questions Back 14

Recipe: The Shopping List 16

Recipe: Which Answers Are Correct? 21

Summary 24

2  Interactive Fiction (Zork, Choose Your Own Adventure Books) 27

Recipe: Styled Pages 28

Recipe: Goto Page 32

Recipe: Adding an Inventory with Drag and Drop 35

Recipe: Adding Complex Interactions 43

Recipe: Breadcrumb Trail 53

Recipe: A Dramatic Ending 56

Summary 58

3  Party (Rock Band, Mario Party) 59

Recipe: Creating a Sample Game in atom.js 60

Recipe: Drawing with Canvas 65

Recipe: Drawing Holes 67

Recipe: Drawing a Mole 70

Recipe: Putting the Moles in the Holes 73

Recipe: Dynamic Mole Peeking 77

Recipe: Bopping Moles 78

Wallowing in Despair with HTML5’s

Summary 84

4  Puzzle (Bejeweled) 85

Recipe: Rendering with easel.js 87

Recipe: Rendering More Than One Thing 91

Recipe: Creating Pairs 95

Recipe: Matching and Removing Pairs 97

Recipe: Hiding and Flipping the Pictures 100

Recipe: Winning and Losing 102

Recipe: Caching and Performance 106

Recipe: Matching Pairs Instead of Duplicates 109

Summary 115

5  Platformer (Super Mario Bros, Sonic the Hedgehog) 117

Getting Started with melon.js 118

Recipe: Creating a Tiled Map 118

Recipe: Starting the Game 120

Recipe: Adding a Character 124

Recipe: Building a Collision Map 127

Recipe: Walking and Jumping 128

Recipe: Title Screen 129

Recipe: Adding Collectables 131

Recipe: Enemies 133

Recipe: Powerups 135

Recipe: Losing, Winning, and Information 136

Summary 138

6  Fighting (Street Fighter II) 141

Recipe: Getting Started with game.js 142

Recipe: Accessing Individual Sprites from a Spritesheet 145

Recipe: Handling Input from Two Players 147

Recipe: Moving and Changing Forms 150

Recipe: Nonblocking Input 154

Recipe: Implementing Bitmasks 157

Recipe: Masking Collisions 161

Recipe: Giving and Taking Damage 164

Summary 170

7  Shooter (Gradius) 171

Some Background Info on Rendering 172

Recipe: Getting Started with gameQuery 174

Recipe: Adding “Enemies” 176

Recipe: Making Your Ship 180

Recipe: Enemy Collisions 183

Recipe: Shooting 184

Recipe: Powerups 187

Summary 190

8  FPS (Doom) 193

Recipe: Getting Started with Jaws 194

Recipe: Creating a 2-D Map 196

Recipe: Adding a Player 199

Recipe: Raycasting Top View 203

Recipe: Fake 3D with Raycasting 208

Recipe: Adding a Camera 212

Recipe: Making the World a More Photogenic Place 216

Recipe: Adding a Friend or Foe 221

Summary 229

9  RPG (Final Fantasy) 231

Recipe: Getting Started with enchant.js 232

Recipe: Creating a Map 233

Recipe: Adding the Player 237

Recipe: Adding a Collision Layer 243

Recipe: Status Screen 244

Recipe: Talking to NPCs 248

Recipe: Creating an Inventory 251

Recipe: Creating a Shop 254

Recipe: Creating a Battle Interface 263

Recipe: Saving Your Game with HTML5’s Local Storage API 274

Summary 277

10  RTS (Starcraft) 279

We Need a Server 280

Recipe: Getting Node 282

Recipe: Real Time with Socket.io 285

Recipe: Creating an Isometric Map with crafty.js 288

Recipe: Drawing the Units 291

Recipe: Moving Units 295

Recipe: Player Specific Control and Visibility 299

Recipe: Collisions for Destruction and Revelation 305

Summary 310

11  Leveling Up 313

What Happened? 314

What’s Next? 314

A  JavaScript Basics 317

Main Types of APIs in JavaScript 318

The Native API 318

The Implementation API 318

A Library API 318

Your API 319

Statements 319

Variables 319

Strings 320

Numbers 320

Arrays 321

Functions 321

Objects 322

Conditionals 323

Loops 323

Comments 324

B  Quality Control    325

Browser Debugging Tools 326

Testing 328

Collaboration for Better Code 329

C  Resources 331

Game Engines 332

Text Editors 333

Browsers 334

Assorted Tools 334

Art Creation/Finding 335

Demos and Tutorials 336

Books 336

Websites 337

Index 339

 


Best Seller

| | See All

Product Details
  • ISBN-13: 9780321898388
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison-Wesley Educational Publishers Inc
  • Depth: 19
  • Language: English
  • Returnable: N
  • Spine Width: 18 mm
  • Weight: 694 gr
  • ISBN-10: 0321898389
  • Publisher Date: 04 Apr 2013
  • Binding: Paperback
  • Height: 227 mm
  • No of Pages: 368
  • Series Title: English
  • Sub Title: Using JavaScript and HTML5 to Develop Games
  • Width: 180 mm


Similar Products

How would you rate your experience shopping for books on Bookswagon?

Add Photo
Add Photo

Customer Reviews

REVIEWS           
Be The First to Review
The Web Game Developer's Cookbook: Using JavaScript and HTML5 to Develop Games(English)
Pearson Education (US) -
The Web Game Developer's Cookbook: Using JavaScript and HTML5 to Develop Games(English)
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

The Web Game Developer's Cookbook: Using JavaScript and HTML5 to Develop Games(English)

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book
    Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    | | See All


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!
    ASK VIDYA