Introduction

One of the much-touted advantages of HTML5 is its support on mobile devices, something that, despite the name of the book, has been ignored in the game so far. This is remedied in this chapter. Adding mobile support to Alien Invasion means recognizing when the game is played on a touch device and responding correctly. In this case it means adding in touch controls and resizing the game to fit the device.

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.