Just wondering if I am doing this right.
I have 10 maps (each map is a whole game). Once you complete a map, I want to set it as completed. I then bring the player back to the map selection area and I want to update the visuals showing them having completed a map.
Do I create Local Storage key for each map? 0 is not yet complete, 1 is complete?
I was going to load an array[10] and have the 0/1 value for each one. Then base on the 0/1 with a graphic whether the map is complete or not.
Since I have to check if each key exists first, should I just create all the keys on the first ever play? then load the key data from there? Should I load the keys on the mainmenu rather than level select, just so the data is ready?
also can I save a whole array to the local storage in one move or do I have to make "map1", "map2" etc.. keys?