Using CocoonJS to Accelerate Your App
CocoonJS is a native wrapper created by Ludei that enables you to create native iOS and Android apps from your HTML5 games. Its claimed value proposition is particularly attractive: Without making any changes to your game, you can package it into a native app and get performance increases of several orders of magnitude.
As of this writing, the DOM support is limited to elements that are useful for games: Canvas, image, and sound elements.
Getting a Game Ready to Load into CocoonJS
The CocoonJS <canvas> tag also supports a special option you can apply to make the <canvas> element scale up to fill the size of the screen while still maintaining its aspect ratio.
To modify the Alien Invasion game from Chapter 3, “Finishing Up and Going Mobile,” to work with CocoonJS, ...