mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-24 22:16:14 -04:00
wip
This commit is contained in:
parent
42abc6bc01
commit
46228a2128
20 changed files with 226 additions and 129 deletions
|
@ -448,10 +448,10 @@ export function explodeBrick(
|
|||
);
|
||||
|
||||
if (gameState.perks.side_kick) {
|
||||
if (Math.abs(ball.vx) > Math.abs(ball.vy)) {
|
||||
if (ball.previousVX > 0) {
|
||||
increaseCombo(gameState, gameState.perks.side_kick, ball.x, ball.y);
|
||||
} else {
|
||||
decreaseCombo(gameState, gameState.perks.side_kick, ball.x, ball.y);
|
||||
decreaseCombo(gameState, gameState.perks.side_kick * 2, ball.x, ball.y);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue