barbara Posted May 16, 2018 Share Posted May 16, 2018 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 More sharing options...
casey Posted May 16, 2018 Share Posted May 16, 2018 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 More sharing options...
barbara Posted May 17, 2018 Author Share Posted May 17, 2018 ok, thanks for your answer, i will try in a cocoon forum then. Link to comment Share on other sites More sharing options...
Recommended Posts