I would like to save data (currently a high score but later stuff like stage-specific scores, inventory, etc) in my game, but also release it on multiple platforms. The trouble is, web apps use LocalStorage, and Win8 apps use the Win8 object, so it seems like I need to use something like this:
Create default score:
If HTML5 ...
If Win8 ...
Load:
If ...
...
Save:
...
...
Does it have to be that complicated, or is there a unified method to save/load no matter what the platform? And I'm not talking about saving/loading the game's state - I'm talking about scores and inventory and stuff.
Thanks!