I’m currently working on a Pacman clone in CircuitBlocks, I noticed there aren’t that many examples or sample projects available just yet - I’ll share my project here once it’s done
Question though - is there any way to save/load data (such as highscore) when using CircuitBlocks? If not, can we hope for that in a future release?!
Hi! I’ve posted a similar question before and @sinkews answered it for me. If your coding with c/c++ there is a library availble called EEPROM, where you can save and read values. Be sure to check it out with youtube tutorials etc.
Ok, well perhaps if you don’t set the value at the start, then it won’t be reset at the start, like in scratch, or you could make a statement like this:
first, make a sethighscore variable, then write
if ( sethighscore = 0) {
variable score = 0;
sethighscore = 1;
}
I think the second option would work better
Wow, this is a complex topic. My head is spinning
Thanks for the suggestion @Tizzlerbot76, but variables are not persisted on the Nibble when it’s restarted (as far as I know, I’d be surprised if they were though)