mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-21 20:46:14 -04:00
Build 29071489
This commit is contained in:
parent
16880533dd
commit
9ae649743c
25 changed files with 367 additions and 10873 deletions
|
@ -373,3 +373,12 @@ export function reasonLevelIsLocked(
|
|||
};
|
||||
}
|
||||
}
|
||||
|
||||
export function ballTransparency(ball: Ball, gameState: GameState) {
|
||||
return clamp(
|
||||
gameState.perks.transparency * (1 - ball.y / gameState.gameZoneHeight) -
|
||||
0.2,
|
||||
0,
|
||||
1,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue