I spent yesterday making a Simon Says / Simon game for the Arduboy.
The game is simple. Remember and repeat the sequences as they show on screen. There are twenty levels generated randomly, so the game should be replayable. The random generation isn’t quite working perfectly, sometimes sequences repeat through the same levels (ie, level 1 is almost always Left then Right).
The code is a little spaghetti, but it would be my first major attempt at a game written on an Arduino platform.
Thanks.
I’ve done as you suggested and I was surprised to see a 5% saving in code space.
The code on Github has been updated. It was a huge challenge to add that ‘2’ in both places
Just for a laugh, I was considering adding the Konami Code to the game. Would the best way be to just initially in the
void loop(){ }
section somewhere watch for the UP_BUTTON and then split off and check to see if the rest of the code is input in the correct sequence, if not, break back out to the main loop ?