When a level is completed I could add this action:
On level completed: set item level to completed
then when the level select layout is loaded:
On start of layout: check if item exists
On item exists: get item
then?
Develop games in your browser. Powerful, performant & highly capable.
It is better to save that type of data in one dictionary so you can load them all at once:
-On level completed: Add Key "Level_Number" -Save the dictionary.AsJSON into Local Storage
Then at the level select layout:
On start of layout: Load dictionary.AsJSON from Local storage ---------Loop check the levels Key if exist: If not then they are Not Complete yet.