Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


Create 6 fun games using the latest HTML5, Canvas, CSS, and JavaScript techniques.

  • Learn HTML5 game development by building six fun example projects

  • Full, clear explanations of all the essential techniques

  • Covers puzzle games, action games, multiplayer, and Box 2D physics

  • Use the Canvas with multiple layers and sprite sheets for rich graphical games

  • Harness CSS3 special effects to create polished, engaging puzzle games

In Detail

HTML5 promises to be the hot new platform for online games. HTML5 games work on computers, smartphones, and tablets – including iPhones and iPads. Be one of the first developers to build HTML5 games today and be ready for tomorrow!

The book will show you how to use latest HTML5 and CSS3 web standards to build card games, drawing games, physics games and even multiplayer games over the network. With the book you will build 6 example games with clear step-by-step tutorials.

HTML5, CSS3 and related JavaScript API is the latest hot topic in Web. These standards bring us the new game market, HTML5 Games. With the new power from them, we can design games with HTML5 elements, CSS3 properties and JavaScript to play in browsers.

The book divides into 9 chapters with each one focusing on one topic. We will create 6 games in the book and specifically learn how we draw game objects, animate them, adding audio, connecting players and building physics game with Box2D physics engine.

Subscriber Reviews

Average Rating: 2 out of 5 rating Based on 1 Rating

"Good Content, Bad Editing" - by A. Moeloa on 22-NOV-2011
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
The number of errors I've found so far prompted me to write up a quick review.  Besides the numerous grammatical mistakes, I've run across poorly-worded instructions, graphics that don't match their explanations, and missing code snippets...and I'm only into the third chapter!

The only saving grace for this book is the content, which is solid, if poorly presented.  Fortunately, I'm not new to JavaScript or CSS, so I was able to correct code when necessary.  Beginners may find themselves lost or confused a bit too often for a "Beginner's Guide".

Report as Inappropriate

Table of Contents



The publisher has provided additional content related to this title.


Downloading the example code for this book

  • You can download the example code files for all Packt books you have purchased from your account at
  • If you purchased this book elsewhere, you can visit and register to have the files e-mailed directly to you.