This commit is contained in:
Renan LE CARO 2025-04-26 14:54:25 +02:00
parent 19ec28a027
commit d572467e99
6 changed files with 39 additions and 26 deletions

View file

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