I made a fairly straightforward game and compiled it through cocoonjs. The Game Worked fine but had problem putting ads on using admob so decided to compile through Intel xdk. After downloading it through the Google play store I noticed that it lags a lot.
I made the following changes to try and solve the problem:
-changed all text to sprite font
-reduced collision points on the sprites to just 3
-changed webstorage to local storage for the highscore so that on start of layout it runs better.
-destroy sprites outside of layout
-changed properties to rounded pixels
Just to quickly explain the game. It consists of a player on the left side of the screen. 4 types of enemies are spawned every random 1.3,1.8 seconds. The enemies are in a family and randomly chosen when spawned. If the player destroys the enemy a point is gain if not then It's game over. Simple!
I would appreciate it massively if someone could help me out with what the issue may be.
Thank you