mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-21 20:46:14 -04:00
Build 29083397
This commit is contained in:
parent
d43dd90a86
commit
a388cd0898
26 changed files with 691 additions and 155 deletions
|
@ -412,3 +412,12 @@ export function getCoinRenderColor(gameState: GameState, coin: Coin) {
|
|||
return coin.color;
|
||||
return "#ffd300";
|
||||
}
|
||||
|
||||
export function getCornerOffset(gameState: GameState) {
|
||||
return (
|
||||
(gameState.levelTime
|
||||
? gameState.perks.corner_shot * gameState.brickWidth
|
||||
: 0) -
|
||||
gameState.perks.unbounded * gameState.brickWidth
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue