Build 29035725

This commit is contained in:
Renan LE CARO 2025-03-16 17:45:29 +01:00
parent a1bf54af71
commit 819197031f
64 changed files with 3494 additions and 6921 deletions

9
src/types.d.ts vendored
View file

@ -1,5 +1,5 @@
import {rawUpgrades} from "./rawUpgrades";
import {options} from "./options";
import { rawUpgrades } from "./rawUpgrades";
import { options } from "./options";
export type colorString = string;
@ -98,7 +98,6 @@ export type Ball = {
piercedSinceBounce: number;
hitSinceBounce: number;
hitItem: { index: number; color: string }[];
bouncesList: { x: number; y: number }[];
sapperUses: number;
destroyed?: boolean;
};
@ -141,6 +140,7 @@ export type RunStats = {
misses: number;
balls_lost: number;
puck_bounces: number;
wall_bounces: number;
upgrades_picked: number;
max_combo: number;
max_level: number;
@ -233,6 +233,7 @@ export type GameState = {
runStatistics: RunStats;
lastOffered: Partial<{ [k in PerkId]: number }>;
levelTime: number;
levelWallBounces: number;
autoCleanUses: number;
};
@ -247,4 +248,4 @@ export type OptionDef = {
help: string;
disabled: () => boolean;
};
export type OptionId = keyof typeof options;
export type OptionId = keyof typeof options;