nimos100
I want the player to at least start the highest level where he/she last played and which hasn't been cleared yet.
About the config file, so what do I have to use? You did not specify in your first reply so I search by myself and I found webstorage and Dictionary. Please do specify if you have another better method in mind. Much appreciated. Thanks.
Not 100% sure what you mean, if the player load an old game, they will continue from where they left off, ain't that what you want?
Anyway here is a very simple example of how to save to a file, that I made some time ago, for another post I think.
It just store some text in a file.
I don't have an example from the load data. Except from Dragonhelm, so it might seem a bit crazy.
In the game all dungeons are random generated, and to make it so players can re-enter them, I store them in files, so I can load them in again. So the load function in the screenshot, read the file. Which would look like this for the tiles of the dungeon.
Each number then represent a certain tile, and it will read through the file, until it reach an "" (Blank space) and from this it can rebuild the dungoen.
What you can do, is to save the settings to a file, and then read in each setting you need and update it in the game, at the "Start of layout", as I have done in my game.
Don't get scared off by my load example. It doesn't have to be like that. Just add the NodeWebKit functionality. But for some reason the help document for it, seems to just link to where you can download it. which is not very useful when you want to learn it I guess
But maybe there is a tutorial that will tell you how to load files simply. Otherwise let me know, and I can try to make something simple to show it.