mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-23 05:26:15 -04:00
wip
This commit is contained in:
parent
419bd8e26b
commit
2b29c0275a
14 changed files with 192 additions and 109 deletions
|
@ -1230,6 +1230,9 @@ export function gameStateTick(
|
|||
coin.x,
|
||||
(clamp(speed, 20, 100) / 100) * 0.2,
|
||||
);
|
||||
if (gameState.perks.compound_interest) {
|
||||
resetCombo(gameState, coin.x, gameState.gameZoneHeight - 20);
|
||||
}
|
||||
if (!isOptionOn("basic")) {
|
||||
makeParticle(
|
||||
gameState,
|
||||
|
@ -1257,9 +1260,7 @@ export function gameStateTick(
|
|||
} else if (coin.y > gameState.canvasHeight + coinRadius * 10) {
|
||||
gameState.levelLostCoins += coin.points;
|
||||
destroy(gameState.coins, coinIndex);
|
||||
if (gameState.perks.compound_interest) {
|
||||
resetCombo(gameState, coin.x, gameState.gameZoneHeight - 20);
|
||||
}
|
||||
|
||||
if (
|
||||
gameState.combo < gameState.perks.fountain_toss * 30 &&
|
||||
Math.random() < (1 / gameState.combo) * gameState.perks.fountain_toss
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue