mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-05-05 03:07:14 -04:00
wip
This commit is contained in:
parent
19ec28a027
commit
d572467e99
6 changed files with 39 additions and 26 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue