mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-05-05 03:07:14 -04:00
wip
This commit is contained in:
parent
401e9b4548
commit
62a1feb015
32 changed files with 1483 additions and 1435 deletions
|
@ -366,7 +366,7 @@ export function render(gameState: GameState) {
|
|||
|
||||
startWork("render:extra_life");
|
||||
if (gameState.perks.extra_life) {
|
||||
ctx.globalAlpha = 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