Summary

You now have some of the additional pieces of glue necessary for an HTML5 game engine: setup, input, and assets. Setting up the visual container for the game is important to get anything on the screen at all. Input on mobile devices is a little trickier than on a desktop because any type of input requires a visual element to display to the user, such as buttons or a joypad. Asset loading, although not a sexy topic, is an important one to get right. Nothing destroys the professionalism of a game more than a bunch of elements popping onto the screen while you play.

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.