HTML5 Games : Creating Fun with HTML5, CSS3, and WebGL

  • ISBN13:


  • ISBN10:


  • Format: Paperback
  • Copyright: 2011-12-27
  • Publisher: Wiley
  • Purchase Benefits
  • Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $39.99 Save up to $1.59
  • eBook
    Add to Cart


Supplemental Materials

What is included with this book?

  • The eBook copy of this book is not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.


HTML5 Games shows you how to combine HTML5, CSS3 and JavaScript to make games for the web and mobiles - games that were previously only possible with plugin technologies like Flash. Using the latest open web technologies, you are guided through the process of creating a game from scratch using Canvas, HTML5 Audio, WebGL and WebSockets. Inside, Jacob Seidelin shows you how features available in HTML5 can be used to create games. First, you will build a framework on which you will create your HTML5 game. Then each chapter covers a new aspect of the game including user input, sound, multiplayer functionality, 2D and 3D graphics and more. By the end of the book, you will have created a fully functional game that can be played in any compatible browser, or on any mobile device that supports HTML5. Topics include: Dealing with backwards compatibility Generating level data Making iOS and Android web apps Taking your game offline Using Web Workers Persistent Game Data Drawing with Canvas Capturing player input Creating 3D graphics with WebGL Textures and lighting Sound with HTML5 Audio And more...

Author Biography

JACOB SEIDELIN (COPENHAGEN) is a freelance web developer with 10 years of experience working withbackend programming, graphics design, and front-end technology. When not working with clients he enjoys JavaScript and HTML5, web game development, and generally pushing the limit of what is possible in the browser. The results of his adventures in web development can be witnessed at his website at http://www.nihilogic.dk/.

Table of Contents

Introduction 1

Part 1

CHAPTER 1 Gaming on the Web 7

CHAPTER 2 Taking the First Steps 21

CHAPTER 3 Going Mobile 41

Part 2

CHAPTER 4 Building the Game 81

CHAPTER 5 Delegating Tasks to Web Workers 103

CHAPTER 6 Creating Graphics with Canvas 123

CHAPTER 7 Creating the Game Display 165

CHAPTER 8 Interacting with the Game 195

CHAPTER 9 Animating Game Graphics 225

Part 3

CHAPTER 10 Creating Audio for Games 269

CHAPTER 11 Creating 3D Graphics with WebGL 299

Part 4

CHAPTER 12 Local Storage and Caching 361

CHAPTER 13 Going Online with WebSockets 387

CHAPTER 14 Resources 407

Index 427

Rewards Program

Write a Review