Jump to content

Phaser -> cocoonjs -> App is crashing when you close it


delueg
 Share

Recommended Posts

Hello,

 

i wonder if this is the right section to ask:

 

i am doing a game with phaser and wrap it up for android with cocoonjs.

 

Now when i close the game with the home-botton, the game doesn´t change in pause mode.. seems the visibitliychange event doesn´t fire here and this cause the game to crash.

When you open up the app again the screen is frozen but you can see that the game logic didn´t paused.

 

Any ideas how i can workaround here?

 

Thanks Sven

Link to comment
Share on other sites

Can you load the CocoonJS Custom Loader and then your own code, or otherwise get access to CocoonJS' console? It's possible an error is being thrown inside CocoonJS itself and we might be able to fix or catch it somehow in Phaser.

 

(This might already be fixed in Phaser 1.2 too. There has been a major update to how visibility works in the latest development branch.)

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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