I’m building an HTML game. For this game I want to implement a save-feature that should work like in some already existing games:
The user can chose
export, this will create a string, representing the game state (I guess). This string can be pasted into an
import input and will load the save game.
I thought about storing the state in a JSON, minifying it, stringifying and encoding it in Base64. But I don’t think this is a good idea, users could easily cheat in this game by decoding the string, changing whatever they want, encoding it again and loading this string.
I already tried generating save files in games with this feature and decoding them in Base64 which didn’t work, so I assume they use a different encoding.
How can I encode the JSON like this?
- NBA Game Forecasts, Picks and Previews with Projected Scoreboard for Dec 27
- NBA Game Forecasts, Picks and Previews with Projected Scoreboard for Dec 26
- Get every Gears of War game on Xbox One for just £16
- Bosnia-Herzegovina: Can fresh elections save a divided state?
- The best free-to-play games of 2020 will help frugal gamers survive
- Polygon’s 50 most anticipated games of 2020
- Klay Thompson, Stephen Curry carry Warriors to riveting Game 6 win
- 25 Nintendo 3DS Games That Are Essential to Any Collection
- NBA Game Forecasts, Picks and Previews with Projected Scoreboard for Dec 25
- Horizon Zero Dawn – the feminist action game we've been waiting for