Save game?
Posted: Sun Apr 09, 2017 9:08 pm
Hi,
In the JezzBall game I used the EEPROM to store the high score, so that it is kept when turning off the console. The problem is there is no way to know whether the value was initialized at some point. The factory value in EEPROM is 0xFF for every byte. So with a fresh EEPROM (never used) it is quite easy to test. Otherwise it is impossible. The idea is to run a simple program which sets all bytes to 0xFF to clear it.
This is OK if only one game would like to use it. But with several games it is a mess. I think it would be great to have a solution in the library itself. Maybe storing data on the SD card would be much better. Is there a plan for this?
In the JezzBall game I used the EEPROM to store the high score, so that it is kept when turning off the console. The problem is there is no way to know whether the value was initialized at some point. The factory value in EEPROM is 0xFF for every byte. So with a fresh EEPROM (never used) it is quite easy to test. Otherwise it is impossible. The idea is to run a simple program which sets all bytes to 0xFF to clear it.
This is OK if only one game would like to use it. But with several games it is a mess. I think it would be great to have a solution in the library itself. Maybe storing data on the SD card would be much better. Is there a plan for this?