O'Reilly logo

HTML5 for Flash Developers by Matt Fisher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Mobile platform support

Since we now have an HTML5 ready version of our game, one of the initial benefits that we can consider is the fact that most mobile device browsers will support the playback of this application. However, because we have set up the game specifically to be controlled via the user's keyboard, we have not created a control method for users that don't have access to one. Correcting this issue in the case of our Jet Pack game is actually pretty easy since our control system only uses one input. In reality, we have two options as to how we implement this feature as almost every mobile browser that supports touch events registers them as click events as well. This means that we can either implement the same keyboard event listener ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required