mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-22 04:56:15 -04:00
Extracted pure functions to make tests happy
This commit is contained in:
parent
8d7d97608d
commit
a4e24fd397
5 changed files with 199 additions and 193 deletions
|
@ -14,8 +14,6 @@ import {
|
|||
import {
|
||||
brickCenterX,
|
||||
brickCenterY,
|
||||
clamp,
|
||||
comboKeepingRate,
|
||||
countBricksAbove,
|
||||
countBricksBelow,
|
||||
currentLevelInfo,
|
||||
|
@ -42,6 +40,7 @@ import {isOptionOn} from "./options";
|
|||
import {isPremium} from "./premium";
|
||||
import {getRunLevels} from "./newGameState";
|
||||
import {requiredAsyncAlert} from "./asyncAlert";
|
||||
import {clamp, comboKeepingRate} from "./pure_functions";
|
||||
|
||||
export function setMousePos(gameState: GameState, x: number) {
|
||||
gameState.puckPosition = x;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue