Build 29095000

This commit is contained in:
Renan LE CARO 2025-04-26 22:40:32 +02:00
parent 096f7d4abd
commit 4c324d211c
27 changed files with 500 additions and 1350 deletions

View file

@ -19,7 +19,8 @@ import { isOptionOn } from "./options";
import {
ballTransparency,
catchRateBest,
catchRateGood, clamp,
catchRateGood,
clamp,
coinsBoostedCombo,
levelTimeBest,
levelTimeGood,
@ -401,11 +402,14 @@ export function render(gameState: GameState) {
) {
ctx.beginPath();
ctx.moveTo(gameState.puckPosition, gameState.gameZoneHeight);
ctx.globalAlpha =clamp(
ctx.globalAlpha = clamp(
Math.max(
telekinesisEffectRate(gameState, ball),
yoyoEffectRate(gameState, ball),
) * ballAlpha,0,1);
) * ballAlpha,
0,
1,
);
ctx.strokeStyle = gameState.puckColor;
ctx.bezierCurveTo(
gameState.puckPosition,