mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-22 04:56:15 -04:00
Fix with explosions
This commit is contained in:
parent
3a72ae005b
commit
35ea8e952a
4 changed files with 14 additions and 13 deletions
|
@ -284,7 +284,7 @@ export function explosionAt(
|
|||
if (gameState.bricks[i] && i !== -1) {
|
||||
// Study bricks resist explosions too
|
||||
gameState.brickHP[i]--;
|
||||
if (gameState.brickHP <= 0) {
|
||||
if (gameState.brickHP[i] <= 0) {
|
||||
explodeBrick(gameState, i, ball, true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue