2 ms·
To glibly answer your question: favorite way? In the "usercloud" (as a cookie). But more in depth, it's a good question! You could get innovative and use loca
by keepamovin 3y ago
To glibly answer your question: favorite way? In the "usercloud" (as a cookie).
But more in depth, it's a good question!
You could get innovative and use localstorage combined with WebRTC to create a p2p storage "mesh". :)
Honestly tho I would use GitHub gists. They have an API. There's a token you can get. You could use whatever storage format you want (JSON anyone? Blah, why not just use malbolge).
Or if you're doing gists, why not go the whole nine gits? Depending on what your game runs on, you could just use git, to a shared repository, on GitHub.
- Waterluvian 3y agoA gist is a great idea. The one issue, I think, is that I cannot expect users to have a GH account, and I'm not sure it's sensible to make a GH account and embed a Token in the app. That's the rub, I think. Any sensible person would scream, "SECURITY HOLE!" but for my use case, it's not an issue. Just some high scores for a game that like 100 people might play in its lifetime, or whatnot.