Extracted pure functions to make tests happy

This commit is contained in:
Renan LE CARO 2025-03-29 21:22:19 +01:00
parent 8d7d97608d
commit a4e24fd397
5 changed files with 199 additions and 193 deletions

View file

@ -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;