Introduction

Just because your game is developed for the web using HTML5 doesn’t mean that’s where it has to stay. There are a number of ways you can package your game so that it’s playable in the various app stores. For the desktop version of your game, this chapter shows you how to publish your game in the Chrome Web Store. For packaging mobile versions of your app, you examine two technologies: Ludei’s CocoonJS and AppMobi’s DirectCanvas. Both of these technologies enable you to take a Canvas HTML5 game and package it into a native app that replaces the normal Canvas rendering calls with hardware-accelerated OpenGL ES calls, greatly boosting the graphical performance of your HTML5 games with only a few code changes. The generated apps can then be distributed in the various mobile app stores, including the Apple App Store and Google 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.