Jump to content

How to make HTML5 game apps using phoneGap


astoria0128
 Share

Recommended Posts

Hi,

Currently PhoneGap is one of the best popular mobile app development framework among developers community and submission of Phonegap apps in app stores continuously grow in regular basis. I am not friendly with Phonegap cross platform framework  help me how to make HTML5 game app using Phonegap.

Link to comment
Share on other sites

Please follow the tutorials on PhoneGap and how to serve webpages from any iOS/Android/WindowsPhone client. It's not that hard.

Having an HTML5 game with PhoneGap is not so much different from the first tutorial you will do. Really!

 

If you have specific questions, do not hesitate to ask. Generic questions like the one you posted will most probably never get answered.

Link to comment
Share on other sites

  • 2 weeks later...

Well, that depends on what kind of games you want to make.

 

Generally it's not recommended to make games for PhoneGap as it's pretty slow and doesn't provide any canvas acceleration, compared to other options. The best framework out there is probably CooconJS. They provide acceleration to the canvas, so the apps run as they were written in some other, native language. (CooconJS basically converts Javascript).

 

I know that the question isn't about it, but I strongly recommend for you to switch to CooconJS. I've used both, and from experience CooconJS is much faster and arguably easier to use. CooconJS is also fully free! As far as I remember you could only have one app with PhoneGap, then you had to pay.

 

Check out their website: https://www.ludei.com/cocoonjs/

Link to comment
Share on other sites

Yea, that's entirely wrong, Doozerman.

 

Because of ios8 phonegap outperforms cocoon and cocoon will soon be obsolete.

For Android you might want to use Crosswalk. Im not sure if crosswalk performs better for android than cocoon.

Link to comment
Share on other sites

Hmm. What makes PhoneGap faster on ios 8? That is complete news to me. Are there any benchmarks or tests that would prove that PhoneGap is faster, because it's hard to believe. :P

 

I know that the overall performance of Html5 on ios 8 improved. Does that have anything to do with the performance boost in PhoneGap?

Link to comment
Share on other sites

iOS8 now has a new WKWebView that supports WebGL. At the end of the day PhoneGap basically just instantiates a web view and runs your content in it. Previously iOS only offered the UIWebView class which is pretty limited. So now with iOS8 PhoneGap can use the WKWebView and your content will run on WebGL.

Link to comment
Share on other sites

I

 

Are there any benchmarks or tests that would prove that PhoneGap is faster, because it's hard to believe. :P

I agree that we need to see some hard evidence - does anyone out there have real performance benchmarks they can share?

Link to comment
Share on other sites

Thanks Sebastian, the website you provided contains a lot of good benchmarks and describes everything very well.

 

The thing is, that every post and article that I read about WKWebView is about WebGL performance. Does iOS 8 improve Canvas2d performance in any way? Because that's what I am mainly focusing on. :)

Link to comment
Share on other sites

Well, you will have to test that. I don't use an ios device atm.

But ios users usually get their os updates pretty fast, you might not have any reason to not use webgl anymore.

 

If the canvas 2d performance is worse than with cocoon (which i doubt) then you can always pick cocoon over phonegap. Not like the packing takes a lot time.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...