Feature/advanced game mechanics #5

Merged
ilia merged 30 commits from feature/advanced-game-mechanics into main 2026-07-19 15:09:22 +00:00
Showing only changes of commit 274cc93c55 - Show all commits
+6
View File
@@ -57,5 +57,11 @@ export class Game {
this.ball.reset(); this.ball.reset();
} }
} }
const isAnyBrickAlive = this.bricks.some((row) => row.some((brick) => brick.alive));
if (!isAnyBrickAlive) {
this.status = 'completed';
}
} }
} }