Previously I used Local Storage function to save all my globalvar data and load them at the start of the game, for instance, If LevelKey exist > get LevelKey, Set GameLevel to ItemValue. But I understand saving my game this way makes them susceptible to being overwritten (cleared into oblivion) if user accidentally clear their browser cache. Since my game is exported to NWJS format, is there any way I can save it in a different folder, say a subfolder in My Documents?
And how do I save and pull those global variable data at the start of the game using this method?
I have multiple globalvar data to save and load. Also, does it render Local Storage functions unusable? I haven't seen much clear examples for this. Can I get anyone's assistance on this? Much appreciated.