mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-05-05 03:07:14 -04:00
Build 29095000
This commit is contained in:
parent
096f7d4abd
commit
4c324d211c
27 changed files with 500 additions and 1350 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue