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

@ -11,8 +11,8 @@ android {
applicationId = "me.lecaro.breakout"
minSdk = 21
targetSdk = 34
versionCode = 29046953
versionName = "29046953"
versionCode = 29048147
versionName = "29048147"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary = true

File diff suppressed because one or more lines are too long

40
dist/index.html vendored

File diff suppressed because one or more lines are too long

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;
}

File diff suppressed because it is too large Load diff