HTML5 2D game development, Setting the stage

Implementing the game object, pausing, freezing, thawing, and keyboard input

From the developerWorks archives

David Geary

Date archived: December 19, 2016 | First published: October 30, 2012

In this series, HTML5 maven David Geary shows you how to implement an HTML5 2D video game one step at a time. In this installment, you'll learn how to encapsulate game code in an object, how to implement pause and unpause, and how to use CSS3 transitions to implement a game-restart countdown.

This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some steps and illustrations may have changed.

Zone=Java development, Web development
ArticleTitle=HTML5 2D game development: Setting the stage