please guys tell me or show me some example (.capx) - How to save settings in your game using Webstorage?
Speaking about an Arkanoid game, in the "Options" section I would like to have 2 options:
1) play it with one finger (drag & drop)
2) play it with buttons along walls (left and right buttons)
I know how to do these 2 options and play it like that BUT I dont know how to persist selected option when I close my game. When I launch it again, default option (drag & drop) is set.
Could you please tell me how to set Webstorage?
I have made a simply example...
1) first choose one of the 2 options
2) then press start
3) then press F5 or close the windows and please fix it for me ! when I open it again I want play it with the last selected option.
So when I ended with drag and drop I want it to play again with this option when launch it again
Develop games in your browser. Powerful, performant & highly capable.
I think what you want might be here?
well I have already seen that tutorial but didnt find anything uselful. I tought that I have to focus completely on Webstorage.
I am really desperate... I have been trying to get this work all day...
But I strongly suggest you to check out more tutorials/elements from the "How do I FAQ" (for example, at the category "Webstorage" you would have found what you were looking for) before going further.
The mere fact that you are using several object types when you could be using simply instances suggest you might be still lacking in experience and could use some practice from the tutorials/how do I examples/manual articles.
Here is a good example too