Hi All,
I've been working on a game meant for mobiles and it has been going well up until recently when I tried to test out the APK. Much to my dismay I found that while the game worked fine on my browser, It wouldn't get passed the main menu as an APK on my Android device.
I initially attempted this using CocoonJS, and while the game worked amazingly on the launcher from a zip file, the game would not switch layouts when being launched as a signed app. At first I thought perhaps it was just a bug with the layout so I recompiled the app making the default screen the actual game rather than the main menu layout. The game launched and played fine, but when attempting to navigate from the game to the main menu (through the pause screen/quit button) or even restart the game, it didn't work <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">
Strangely enough I found that the layout it was stuck on was perfectly functional allowing me to resume and keep playing the game, it just refused to do anything revolving around switching layouts. I thought maybe there was a bug with CocoonJS so I made a simple dummy project with two layouts and button that toggled between the two, and that worked just fine so that got me thinking that perhaps there was something fundamentally wrong I was doing in practice that perhaps caused the game to overload or something such as a rookie mistake with the way I handled my events? This is my first mobile game project so I guess having it go smoothly would be too much to ask!
After asking around on the forums I was suggested to ditch CocoonJS and use Crosswalk instead, the only issue with that is that that wrapper seems to have it's own problems; I can't seem to lock the orientation to landscape, the anchoring seems a bit screwy and the game runs extremely slow <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">
Can anyone offer any assistance? I really want to keep this project going but right now it has hit a complete standstil!
Any help would be appreciated.
https://drive.google.com/folderview?id= ... sp=sharing
Here is a link to the Capx if anyone would care to take a look, as well as the cocoonjs zip and signed APK if anyone wants to try and reproduce the issue.