This commit is contained in:
Renan LE CARO 2025-03-25 08:47:39 +01:00
parent 35ea8e952a
commit 39b6738805
8 changed files with 836 additions and 751 deletions

View file

@ -1,5 +1,5 @@
// The version of the cache.
const VERSION = "29046953";
const VERSION = "29048147";
// The name of the cache
const CACHE_NAME = `breakout-71-${VERSION}`;

View file

@ -1 +1 @@
"29046953"
"29048147"

View file

@ -163,10 +163,13 @@ export function normalizeGameState(gameState: GameState) {
putBallsAtPuck(gameState);
}
if (Math.abs(gameState.lastPuckPosition - gameState.puckPosition) > 1 && gameState.running) {
if (
Math.abs(gameState.lastPuckPosition - gameState.puckPosition) > 1 &&
gameState.running
) {
gameState.lastPuckMove = gameState.levelTime;
}
gameState.lastPuckPosition = gameState.puckPosition
gameState.lastPuckPosition = gameState.puckPosition;
}
export function baseCombo(gameState: GameState) {
@ -847,7 +850,6 @@ export function gameStateTick(
gameState.combo,
);
gameState.balls = gameState.balls.filter((ball) => !ball.destroyed);
const remainingBricks = gameState.bricks.filter(

View file

@ -61,7 +61,7 @@ export function pickedUpgradesHTMl(gameState: GameState) {
let list = "";
for (let u of upgrades) {
for (let i = 0; i < gameState.perks[u.id]; i++)
list += `<span title="${u.name}">${icons["icon:" + u.id]}</span>`;
list += `<span title="${u.name}">${icons["icon:" + u.id]}</span>`;
}
return list;
}
@ -179,4 +179,4 @@ export function countBricksBelow(gameState: GameState, index: number) {
}
}
return count;
}
}

File diff suppressed because it is too large Load diff