Game javascript no Framework Cordova or phonegap

Asked

Viewed 106 times

1

Good afternoon, I created a little game for web with javascript, I wanted to port it to android, after searching I found Cordova or phonegap, which is pretty cool, but when I compiled the game for android the frame rate per second is very low, the game not so heavy and the devices I tested are not weak. I realized that it gets slow interpolating the image generated on the canvas, I do not know if this has to be, I’ve seen many games that are like this and they work well, if someone can help me I’m grateful.

  • Something that you can make to stop getting more performative, is to keep only three images or the amount of images needed p your app, if you while using an image delete probably the error will stop existing. There are good frameworks for this like Enchant.js, which will possibly make your life easier.

1 answer

0

How Cordova/phonegap works?

The operation is very simple. Cordova is nothing more than a program installed on the mobile phone that has an embedded browser engine. When we develop an app using certain technology using js and HTML what happens on mobile when opening the application is the same run the same from the browser itself installed in the browser.

How is the performance of Cordova?

As the OS interprets Cordova as a browser, not so many resources are allocated as memory and processing for the application in question. And there is a problem that often justifies not using Cordova in an application.

About games with Ordova

Unless it’s something relatively simple, I don’t recommend using Cordova. The ideal is to develop using native platform language due to this issue of processing and memory allocation

Browser other questions tagged

You are not signed in. Login or sign up in order to post.