JWinslow23 wrote:And is it possible to be able to quit the game and still be able to load the save next time you load the game? I'm trying in Simbuino, and when I press C on the title screen, it erases the saved game.
JWinslow23 wrote:For my 2048 game (and some other games like Paqman, Asterocks, haven't tested others) whenever I press C on the title screen, the highscores erase.
JWinslow23 wrote:I want the savegame and highscore to persist until I play the game again.
JWinslow23 wrote:Also, something weird happened when I played Crabator after 2048...
JWinslow23 wrote:I've also heard of people making .sav files?
Myndale wrote:JWinslow23 wrote:For my 2048 game (and some other games like Paqman, Asterocks, haven't tested others) whenever I press C on the title screen, the highscores erase.
Are you sure you're running the latest version of Simbuino? There were some problems with the EEPROM display a little while ago which were subsequently fixed.JWinslow23 wrote:I want the savegame and highscore to persist until I play the game again.
When I compile and run your code I see it updating EEPROM correctly but pressing C from the title screen doesn't do anything. However, now that I've looked into it I've discovered that although EEPROM persists across "Load Game" it isn't being saved to the settings file correctly, so if you quit Simbuino and run it again the EEPROM gets erased. (Thanks for bringing it to my attention!) There's a major release coming out next week which now has this fix along with a few others (support for EEPROM Load/Save, displaying the version number etc), I'll be announcing it on the Simbuino forum thread when it's available so you may want to hang on until then.JWinslow23 wrote:Also, something weird happened when I played Crabator after 2048...JWinslow23 wrote:I've also heard of people making .sav files?
Looks like Crabator doesn't check EEPROM to make sure there's a valid game there. Simbuino hasn't been designed to replace Gamebuino, it's just a tool to help with development. When you change games on the real hardware it saves and restores the EEPROM for the games in the .SAV files.
Great game btw, it's a genre I enjoy when I have a few spare moments on the train and I had fun playing it The one suggestion I would make though is to give the player the option of when to save the game instead of doing it every turn. EEPROM is only guaranteed for 100k write cycles, if every game wrote to EEPROM a few hundred times a session (which yours easily could wind up doing) and people played 5 games per day (say) then the EEPROM could be permanently destroyed in just a couple of months. In reality most games don't do this and EEPROM typically outlasts it's spec'd write cycles by an order of magnitude, but as developers we should err on the side of caution and only write to it when we absolutely need to.
Return to Programming Questions
Users browsing this forum: No registered users and 1 guest