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: February 23, 2017 | 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.



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Java development, Web development
ArticleID=842841
ArticleTitle=HTML5 2D game development: Setting the stage
publish-date=10302012