how can i save my variables so player can get them when he start game
Sorry for bumping your thread as I don't have any answers but I'd like to know that as well! Maybe saving to the disk to reload preferences, variables, save games from it? Thanks for asking, I'll be watching this thread :)
The Amazing Webstorage Object.
Is there any example that explain the use of the amazing Webstorage Object?
Develop games in your browser. Powerful, performant & highly capable.
Hi, this is the way i do.I Don?t know if it's the easiest way.
I don't think there is much documentation of it at the moment. Think of it as a variable which saves its value even when the game is not playing. The 'key' is the name and the 'value' is the stored value.
In the how do I FAQ there are a few examples for webstorage and there is a full level editor (using webstorage) example.
Check those out.