Summary

In this chapter you built a game using CSS and DOM elements. There are more CSS3 features such as animations and 3-D transforms that haven’t been covered that could fill another book. If you are looking for more things that you can do in CSS3, check out some of the resources in the bibliography. Although the new CSS3 features are neat, with hardware-accelerated canvas appearing on more and more devices and browsers, one of the primary advantages of CSS is its backward compatibility, so building a game from the ground up that relies on cutting-edge CSS features might not be the best idea. This chapter showed you how to build a game that works all the way back to IE6 on the desktop, whereas still providing a nice smooth-animated experience for newer desktop and mobile browsers.

Get Professional HTML5 Mobile Game Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.