Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Is it possible to package HTML5 game for iPhone and Android as an application or has it to be accessed through a browser?

share|improve this question
    
My question exactly +1 –  acidzombie24 Sep 17 '12 at 23:23
add comment

5 Answers

up vote 12 down vote accepted

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.

share|improve this answer
add comment

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:

public class WebApp extends Activity {
    protected void onCreate(Bundle savedInstanceState) {
        WebView wv = new WebView(this);
        wv.loadUrl("http://www.myapp.com/");
        setContentView(wv);
    }
}

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.

share|improve this answer
add comment

From ImpactJS Tools page there are:

  • PhoneGap
    • Package your games into an iPhone or Android App, ready to be distributed in the App Stores.
  • appMobi
    • Easily integrate and distribute your games into native iPhone and Android Apps. You don't even need a Mac or XCode to get your game into the iPhone App Store.
share|improve this answer
add comment

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.

share|improve this answer
add comment

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...

Web Tools 2.3 for Series40

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.