Build 29091656

This commit is contained in:
Renan LE CARO 2025-04-24 14:57:08 +02:00
parent f48d9bdfa3
commit e2d8a0ab5c
28 changed files with 2607 additions and 2496 deletions

View file

@ -76,8 +76,7 @@ export function render(gameState: GameState) {
}
const catchRate = gameState.levelSpawnedCoins
? (gameState.score - gameState.levelStartScore) /
(gameState.levelSpawnedCoins || 1)
? gameState.levelCoughtCoins / (gameState.levelSpawnedCoins || 1)
: // (gameState.levelSpawnedCoins - gameState.levelLostCoins) /
// gameState.levelSpawnedCoins
1;
@ -366,7 +365,7 @@ export function render(gameState: GameState) {
startWork("render:extra_life");
if (gameState.perks.extra_life) {
ctx.globalAlpha = gameState.balls.length>1 ? 0.2:1;
ctx.globalAlpha = gameState.balls.length > 1 ? 0.2 : 1;
ctx.globalCompositeOperation = "source-over";
ctx.fillStyle = gameState.puckColor;
for (let i = 0; i < gameState.perks.extra_life; i++) {