HTML and CSS Reference
In-Depth Information
"version": "1.0.0",
"app": {
"launch": {
"local_path": "index.html"
}
},
"icons": {
"128": "invasion_128.png",
"16" : "invasion_16.png"
}
}
As you can see, this file looks similar to the one for the hosted app, with the primary difference in the
launch section, which has a local_path instead of a web_url . The only other difference is the 16 × 16
pixel icon used for the app tabs that serves as a favicon. (Hosted apps used the website's favicon, so this image
wasn't necessary.)
You can load the app the same way by clicking Load Unpacked Extension from the Chrome extensions page
and can play it from the launch screen when you create a new tab.
Publishing Your App
To publish your app, you need to log in to a Google account and go to the Chrome Web Store developer dash-
board: https://chrome.google.com/webstore/developer/dashboard .
Then click the Add New Item link and upload a .zip file of the extension directory. You can upload both
hosted and packaged apps, but for hosted apps you need to verify you are the owner of any domains listed in the
URLs section of your manifest by using Google Webmaster tools.
After you upload the zip file, you have the opportunity to enter a detailed description, upload an icon and
promotional image, and select categories and regions and hook in Google Analytics.
To publish your first app, you also need to pay a $5.00 one-time fee that Google uses to prevent SPAM ac-
counts. After that your app will be published in the Chrome store and easily available to the millions of Chrome
users around the world.
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.
The fine print is that Cocoon supports a limited subset of HTML and primarily works by exposing an API in
JavaScript that mimics the Canvas API. The full list of features that CocoonJS supports is available on the Wiki
at http://wiki.ludei.com/cocoonjs:featurelist .
As of this writing, the DOM support is limited to elements that are useful for games: Canvas, image, and
sound elements.
Search WWH ::




Custom Search