Browse Source

Game testing results with fewer levels to resolve #11

main
Dennis Bücker 1 year ago
parent
commit
02624ef9de
  1. 2
      src/MCUInfo.h
  2. 2
      src/SimonDisplay.cpp
  3. 31
      src/SimonSays.cpp

2
src/MCUInfo.h

@ -9,6 +9,6 @@ struct MCUInfo
static constexpr int maxColorArrayLength = 10; //maximal array length
static constexpr int initialGameLifes = 3; // lifes to start game with
static constexpr int maxLevel = 8; // Maximum Level number after game is going to 'win' state.
static constexpr int maxLevel = 5; // Maximum Level number after game is going to 'win' state.
};

2
src/SimonDisplay.cpp

@ -195,7 +195,7 @@ void SimonDisplay::displayAddLevelIndication(int currentLevel)
// indicate white for future
color=CRGB(50,50,50);
}
drawPixel(levelLedId+15,color); // starts in lower row, max level 10
drawPixel(levelLedId+20,color); // starts in lower row, max level 10
}
}

31
src/SimonSays.cpp

@ -107,30 +107,25 @@ void SimonSays::generateNewSequence() {
currentSpeed = 70;
break;
case 2:
numberOfColors = 4;
currentSequenceLength = 4;
currentSpeed = 60;
break;
numberOfColors = 4;
currentSequenceLength = 6;
currentSpeed = 50;
break;
case 3:
numberOfColors = 4;
currentSequenceLength = 6;
currentSpeed = 50;
break;
numberOfColors = 5;
currentSequenceLength = 7;
currentSpeed = 40;
break;
case 4:
numberOfColors = 4;
currentSequenceLength = 7;
currentSpeed = 50;
break;
case 5:
numberOfColors = 4;
numberOfColors = 6;
currentSequenceLength = 8;
currentSpeed = 40;
break;
// cut with 5 lvl
case 5:
case 6:
numberOfColors = 5;
currentSequenceLength = 9;
currentSpeed = 40;
break;
case 7:
numberOfColors = 6;
currentSequenceLength = 10;

Loading…
Cancel
Save