What this book covers
Chapter 1, Introducing HTML5 Games, introduces the new features of HTML5, CSS3, and the related JavaScript API. It demonstrates what games we can make with these features and their benefits.
Chapter 2, Getting Started with DOM-based Game Development, kickstarts the game development journey by creating a traditional Ping Pong game in DOM and jQuery.
Chapter 3, Building a Card-matching Game in CSS3, walks you through the new features of CSS3 and discusses how we can create a memory card-matching game in DOM and CSS3.
Chapter 4, Building the Untangle Game with Canvas and the Drawing API, introduces a new way to draw things and interact with them in a web page with the new canvas element. This also demonstrates how to handle dragging on touch devices.
Chapter 5, Building a Canvas Game's Masterclass, extends the Untangle game to show how we can draw gradients and images in the Canvas. It also discusses sprite sheet animations and multilayer management.
Chapter 6, Adding Sound Effects to Your Games, adds sound effects and background music to the game by using the Audio element. It discusses the audio format capability among web browsers and creates a keyboard-driven music game by the end of the chapter.
Chapter 7, Saving the Game's Progress, extends the CSS3 memory-matching game to demonstrate how we can use the Local Storage API to store and resume game progress and records the best scores.
Chapter 8, Building a Multiplayer Draw-and-Guess Game with WebSockets, discusses the WebSockets API that allows browsers to establish persistent connection with the socket server. This allows multiple players to play the game together in real time. A draw-and-guess game is created at the end of the chapter.
Chapter 9, Building a Physics Car Game with Box2D and Canvas, teaches you how to integrate a famous physics engine, Box2D, into our canvas games. It discusses how to create physics bodies, apply force, connect them together, associate graphics with the physics, and finally create a platform car game.
Chapter 10, Deploying HTML5 Games, shares the different ways in which we can publish our games. It discusses wrapping the web into a native app for Apple's App Store.
Appendix, Pop Quiz Answers, gives the answers to the pop quiz questions in each of the chapters.