mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-05-05 03:07:14 -04:00
wip
This commit is contained in:
parent
94ffb80f49
commit
258d578ad3
22 changed files with 385 additions and 26 deletions
|
@ -425,7 +425,10 @@ export function render(gameState: GameState) {
|
|||
ctx.setLineDash(emptyArray);
|
||||
}
|
||||
ctx.globalAlpha = 1;
|
||||
if (gameState.perks.clairvoyant && gameState.ballStickToPuck) {
|
||||
if (
|
||||
(gameState.perks.clairvoyant && gameState.ballStickToPuck) ||
|
||||
(gameState.perks.steering > 1 && !gameState.ballStickToPuck)
|
||||
) {
|
||||
ctx.strokeStyle = gameState.ballsColor;
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(ball.x, ball.y);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue