PacktLib: Learn HTML5 by Creating Fun Games

Learn HTML5 by Creating Fun Games

Credits

About the Author

About the Reviewer

www.PacktPub.com

Preface

An Overview of HTML5

What is HTML?

What is HTML5?

HTML5 is not a single feature

More semantic document structure

A warning about performance

Native features of the browser

CSS3

JavaScript APIs

The Web as a platform

The Open Web

HTML5 – a game changer

Learning HTML5 through game development

Summary

HTML5 Typography

The game

Game elements

API usage

The code

Summary

Understanding the Gravity of HTML5

Browser compatibility

The game

Web audio

SVG

Drag-and-drop

Summary

Using HTML5 to Catch a Snake

The game

Typed arrays

Canvas

Web workers

Offline application cache

The code

Summary

Improving the Snake Game

The game

API usage

IndexedDB

The code

Summary

Adding Features to Your Game

Advanced HTML5 APIs

WebGL

Web sockets

Video

Geolocation

Upcoming CSS features

Summary

HTML5 and Mobile Game Development

Desktop versus mobile

Understanding media queries

Understanding touch events

The game

Summary

Index