mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-05-05 03:07:14 -04:00
Build 29087440
This commit is contained in:
parent
6b54fb82d6
commit
dc66f69543
23 changed files with 424 additions and 183 deletions
|
@ -427,7 +427,7 @@ export function render(gameState: GameState) {
|
|||
});
|
||||
|
||||
startWork("render:puck");
|
||||
ctx.globalAlpha = isMovingWhilePassiveIncome(gameState) ? 0.2: 1;
|
||||
ctx.globalAlpha = isMovingWhilePassiveIncome(gameState) ? 0.2 : 1;
|
||||
ctx.globalCompositeOperation = "source-over";
|
||||
drawPuck(
|
||||
ctx,
|
||||
|
@ -685,7 +685,6 @@ export function renderAllBricks() {
|
|||
const redBorderOnBricksWithWrongColor =
|
||||
hasCombo && gameState.perks.picky_eater && isPickyEatingPossible(gameState);
|
||||
|
||||
|
||||
const redRowReach = reachRedRowIndex(gameState);
|
||||
const { clairvoyant } = gameState.perks;
|
||||
let offset = getDashOffset(gameState);
|
||||
|
@ -746,7 +745,7 @@ export function renderAllBricks() {
|
|||
color !== "black" &&
|
||||
redBorderOnBricksWithWrongColor) ||
|
||||
(hasCombo && gameState.perks.zen && color === "black") ||
|
||||
redBecauseOfReach ;
|
||||
redBecauseOfReach;
|
||||
|
||||
canctx.globalCompositeOperation = "source-over";
|
||||
drawBrick(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue