Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

store data in an app created with cocoon


barbara
 Share

Recommended Posts

Hi, i'm creating a game with phaser and i converted it in an app with cocoon so i can put it up in the play store.

Now i face a problem, i don't know how to store simple data, as levels, lifes, etc... so when the user exits the app and get back in can continue playing where it was left.

I found some info about it but it seems pretty difficult as it is in native android (wich i don't know very well), i don't know if there are more options, i'm looking for something easy, at least to start.

Many thanks.

Link to comment
Share on other sites

This might be better answered on a Cocoon rather than Phaser forum. I haven't used Cocoon, but Phaser (and I believe Cocoon) is just essentially an in-browser game so you just store data like you would any browser data using LocalStroage.

https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API#localStorage 

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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