I am creating a script where the player can save and load his game progress. The data should be stored in the local storage. In the script is the code for creating two buttons on the game screen labeled “save”, and “load”. the buttons should work to where when clicked, they can save the players data, and load it. How would I finnish this?
Here is the script: the codes:
ps, the data such as the player’s level, and the items in his inventory will be stored in variables, such as:
You haven’t asked what a problem specifically you experience, what have you tried and what didn’t worked?
It is always best to try, learn and move slowly but steadily towards your target. MDN I found one of the best JavaScript general purpose websites with loads of examples, documentation, and general knowledge on JS.
Please, show what you have tried to do, in order to achieve what you are intended to? So that we can see what problems you experience, and can assist you in solving them.
I’m not sure people will be able to write your code for your ideas, that is your “homework” to do