fixed combo count

This commit is contained in:
2025-12-07 18:46:23 +01:00
parent e27d1b60b1
commit a74d7135e6
3 changed files with 9 additions and 2 deletions

View File

@ -84,6 +84,7 @@ public:
// Additional stats
int tetrisesMade() const { return _tetrisesMade; }
int maxCombo() const { return _maxCombo; }
int comboCount() const { return _comboCount; }
private:
std::array<int, COLS*ROWS> board{}; // 0 empty else color index
@ -100,6 +101,7 @@ private:
int _tetrisesMade{0};
int _currentCombo{0};
int _maxCombo{0};
int _comboCount{0};
double gravityMs{800.0};
double fallAcc{0.0};
Uint64 _startTime{0}; // Performance counter at game start