mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-22 13:06:15 -04:00
Build 29087440
This commit is contained in:
parent
6b54fb82d6
commit
dc66f69543
23 changed files with 424 additions and 183 deletions
|
@ -8,15 +8,6 @@ export function comboKeepingRate(level: number) {
|
|||
return clamp(1 - (1 / (1 + level)) * 1.5, 0, 1);
|
||||
}
|
||||
|
||||
export function shouldCoinsStick(gameState: GameState) {
|
||||
return (
|
||||
gameState.perks.sticky_coins &&
|
||||
(!gameState.lastExplosion ||
|
||||
gameState.lastExplosion <
|
||||
gameState.levelTime - 300 * gameState.perks.sticky_coins)
|
||||
);
|
||||
}
|
||||
|
||||
export function ballTransparency(ball: Ball, gameState: GameState) {
|
||||
if (!gameState.perks.transparency) return 0;
|
||||
return clamp(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue