When I have to memorize the completed levels with local storage:
On level completed: what action?
and when I go to the menu layout:
On start of layout: check item exists
On item exists: Get item
then?
Develop games in your browser. Powerful, performant & highly capable.
So what I think you're saying is you have nothing so far...try using system save game it might be easier. Save and load = simple. To use local storage here you probably need an array first to store the state of each level and star rating then you can save the array as JSON. You would also need events to read from the array to show the correct image for like level unlocked and number of stars.
I tried this way but it doesn't work. Anyone can help?
1drv.ms/u/s!ApI98ogiXxMuiiFywlmJIxJYOa_j