Is it possible to package HTML5 game for iPhone and Android as an application or has it to be accessed through a browser?
|
|
There's http://www.phonegap.com/ which is open source and cross-platform. Besides packaging your HTML 5 as a native app, it also lets you access native features of the mobile phone. |
|||
|
|
|
I can't vouch for iPhone, but in Android, a simple application with an Activity that just has one WebView would do the trick. The activity would look something like this:
That would make the WebView the entirety of the screen; then you would just need a loading message. Or a better option is to load HTML in the WebView so that the app can be used offline; examples of this are on the API page for WebView. |
|||
|
|
|
From ImpactJS Tools page there are: |
|||
|
|
|
Have you checked out CocoonJS? It's by far one of the best ways to get hardware accelerated HTML5 games on iOS and Android plus they have a cloud compiler where you can upload a single zip and it will build out for multiple platforms. |
|||
|
|
|
If you want to port your game to even more platforms Nokia has a web tool application for porting to Symbian S60 devices... Web Tools for S60 They also have a newer one, which probably supports more HTML5 but I have yet to try it out... The SDK in the first one is fairly good as it also comes with a simulator so you can get an idea of how your app will |
|||
|
|