0 votes
by (360 points)
If I want to send my game (.html) around in an email lets say, because it's its own self-contained file, it will work without internet, right?  In that case, where are saves stored without internet?  Does the player have to use the "save/load to/from disk" option?  If so, is there a way to have it automatically do this so my game doesn't require internet?

Thanks!

1 Answer

0 votes
by (63.1k points)
The data goes to the browser's storage cache, which is on your computer, not on the Internet. You don't need to use the import / export options.
by (360 points)
So if the player doesn't have internet, they can save an load.  However, if they clear their browser cache, all save data is lost?  is there any way around this?

Thanks!
by (63.1k points)
Yes. That's what the (SugarCube only) import / export options are for.
by (360 points)
Got it.  (So I assume this works on mobile too).  Is there any way to have it default to using local storage?

Thanks
by (63.1k points)
What do you mean? The save feature uses local storage, and you can export to and import from disk. There is no "default", really. It always uses local storage, and when you export, it's still in local storage, but you also get a copy on disk.
by (360 points)
Got it.  I must have misunderstood. My apologies!  Thanks!
...