Hi,
I want to allow the player to export & import his current savegame, but then the player can easily adjust the JSON file and change for instance the coins earned so far.
Is there a way to encode the exported JSON file?
Thanks!
What you could do is produce a hash of the values in the JSON file and when it reloads recalculate it and see if the hash still matches. If one of the values is changed without the hash being updated it then won't load.
Develop games in your browser. Powerful, performant & highly capable.
Hey,
thanks for that hint. That sound like a good idea to do that.
I will try to work something out