🤑 Indie game store🙌 Free games😂 Fun games😨 Horror games
👷 Game development🎨 Assets📚 Comics
🎉 Sales🎁 Bundles

HTML5 game : Save data locally

A topic by Acid Prank created 85 days ago Views: 137 Replies: 2
Viewing posts 1 to 3

Hi, 

I'm wondering if it is possible to save data client side or even server side (I doubt for this one) ? 

I did a quick search and it seems that it is possible to save some data locally : 

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

Does someone already did on a HTML5 Game here ?  some experience to share ? 

(Edited 1 time) (+1)

I can tell you that you're on the right tracks. Local storage is the way to go, so go ahead read on that :)

As for my experience, I did a bit of web games years ago when HTML5 wasn't a thing - so you'd usually go for cookies to save and load data. Cookies were very easy to implement but are a mess to work with.

Admin(+1)

You can use local storage to save data. We currently have an issue where uploading a new build of your game changes the path it lives on, so you might lose your storage depending on how you've saved it.