FoobarIT Posted July 27, 2019 Share Posted July 27, 2019 Hi, I'm looking for a method to save the progress of my game. I already use localstorage but I would like to know if there is better system. Thank you. Quote Link to comment Share on other sites More sharing options...
mattstyles Posted July 30, 2019 Share Posted July 30, 2019 What's wrong with your current system? If you answer that then you'll know what you need in a _better_ system. Without knowing an answer to the above then you're just mucking around. The options for storage that you have are reasonably limited. You can use an in-browser database (modern browsers all support indexeddb, edge will soon add it for v2, websql isn't completely supported), or send your game state off to a remote server to store how you like. None of these are better or worse than local storage, they're just different methods and what works _best_ for you is dependent on your use case. Quote Link to comment Share on other sites More sharing options...
vedia Posted July 30, 2019 Share Posted July 30, 2019 I use PlayFab in a couple of my games, Firebase can also be an option. Both of these require to integrate their API which can be fairly difficult if you don't know some javascript. Quote Link to comment Share on other sites More sharing options...
FoobarIT Posted July 31, 2019 Author Share Posted July 31, 2019 I use local storage actually but i ask if better system exist Quote Link to comment Share on other sites More sharing options...
mattstyles Posted July 31, 2019 Share Posted July 31, 2019 The answer depends on your use-case. Local storage is a great option for many use-cases. Some use-cases where it definitely is not a good solution: * Users playing from multiple devices/browsers (local storage lives in one browser and can not be shared) * Local storage, in theory, can be nuked at any time by the browser (I've never seen or heard of it happening, but, browsers make no guarantees) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.