Fix arkanoid bug

This commit is contained in:
MX
2022-12-30 23:31:21 +03:00
parent 6b30dc5114
commit a35b536120
2 changed files with 2 additions and 0 deletions
@@ -276,6 +276,7 @@ void reset_level(Canvas* canvas, ArkanoidState* arkanoid_state) {
arkanoid_state->ball_state.yb = 60;
arkanoid_state->brickCount = 0;
arkanoid_state->ball_state.released = false;
arkanoid_state->gameStarted = false;
// Reset all brick hit states
for(unsigned int row = 0; row < arkanoid_state->ROWS; row++) {