mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-05-05 03:07:14 -04:00
Build 29091656
This commit is contained in:
parent
f48d9bdfa3
commit
e2d8a0ab5c
28 changed files with 2607 additions and 2496 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue