This commit is contained in:
Renan LE CARO 2025-04-08 08:57:41 +02:00
parent 8eb2e049c8
commit e1c20627bc
15 changed files with 302 additions and 56 deletions

View file

@ -100,7 +100,8 @@ export function render(gameState: GameState) {
const brightness = isOptionOn("extra_bright") ? 3 : 1;
haloCanvasCtx.globalCompositeOperation = "lighten";
haloCanvasCtx.globalAlpha = 0.1;
haloCanvasCtx.globalAlpha =
0.1 + (0.5 * 10) / (liveCount(gameState.coins) + 10);
forEachLiveOne(gameState.coins, (coin) => {
const color = getCoinRenderColor(gameState, coin);
drawFuzzyBall(