I try construct 2 from nearly 2 weeks and i'm asking a question that i haven't find any answer in google and in FAQ.
I know that we can ask to a remote server via Ajax to get datas (like XML and i think JSON). I know that we can "translate" the game for a lot a platform like html5, ios, android, ...
I would like to keep in local information about levels to let's players play even if there's offline.
I found about Webstorage and it's about keeping information in local or in session.
For volume reasons i think i would like to keep few levels.
When playing offline on android device (for example), online does not updte until :
-synchronization of offline device connect to online
-online computer is used to play online
Can i use Webstorage for this kind of use? or what should i use?
If i choose local storage (seems to be better for the behaviour i want) when occurs the cache clearing? can i force the cache clearing?
I got information in the manual scirra.com/manual/120/webstorage