mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-22 04:56:15 -04:00
Build 29046953
This commit is contained in:
parent
8b8e49595d
commit
83d335b05e
6 changed files with 8 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
// The version of the cache.
|
||||
const VERSION = "29046822";
|
||||
const VERSION = "29046953";
|
||||
|
||||
// The name of the cache
|
||||
const CACHE_NAME = `breakout-71-${VERSION}`;
|
||||
|
|
|
@ -1 +1 @@
|
|||
"29046822"
|
||||
"29046953"
|
||||
|
|
|
@ -438,12 +438,11 @@ export function explodeBrick(
|
|||
|
||||
if (
|
||||
gameState.perks.nbricks &&
|
||||
ball.brokenSinceBounce == gameState.perks.nbricks+1
|
||||
ball.brokenSinceBounce == gameState.perks.nbricks + 1
|
||||
) {
|
||||
resetCombo(gameState, ball.x, ball.y);
|
||||
}
|
||||
|
||||
|
||||
if (!isExplosion) {
|
||||
// color change
|
||||
if (
|
||||
|
@ -1445,7 +1444,7 @@ export function ballTick(gameState: GameState, ball: Ball, delta: number) {
|
|||
}
|
||||
if (
|
||||
gameState.perks.nbricks &&
|
||||
ball.brokenSinceBounce< gameState.perks.nbricks
|
||||
ball.brokenSinceBounce < gameState.perks.nbricks
|
||||
) {
|
||||
resetCombo(gameState, ball.x, ball.y);
|
||||
}
|
||||
|
@ -1561,7 +1560,6 @@ export function ballTick(gameState: GameState, ball: Ball, delta: number) {
|
|||
const initialBrickColor = gameState.bricks[hitBrick];
|
||||
ball.brokenSinceBounce++;
|
||||
|
||||
|
||||
explodeBrick(gameState, hitBrick, ball, false);
|
||||
if (
|
||||
ball.sapperUses < gameState.perks.sapper &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue