HTML and CSS Reference
Figure 4-2: A mobile 2D platformer.
As you see in Chapter 12, “Building Games with CSS3,” CSS3 adds a lot of power to traditional HTML DOM
elements and can definitely be considered a viable technology to build a game on. For games with touch inter-
faces (that is, mobile), it may be quicker to use CSS3 and the DOM because the browser handles a lot of the
hit detection and interaction for you. In addition, support for hardware-accelerated transforms and animation on
mobile WebKit gives a performance boost over canvas in many situations. Figure 4-3 Shows the CSS3 RPG
built in Chapter 13, “Crafting a CSS3 RPG.”