mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-20 20:16:16 -04:00
Updated soft reset perk to just keep lvl*10 % of combo
This commit is contained in:
parent
a3c66fcdea
commit
a1bf54af71
20 changed files with 4543 additions and 4445 deletions
13
src/types.d.ts
vendored
13
src/types.d.ts
vendored
|
@ -1,4 +1,5 @@
|
|||
import { rawUpgrades } from "./rawUpgrades";
|
||||
import {rawUpgrades} from "./rawUpgrades";
|
||||
import {options} from "./options";
|
||||
|
||||
export type colorString = string;
|
||||
|
||||
|
@ -194,8 +195,7 @@ export type GameState = {
|
|||
// Will be set if the game is about to be paused. Game pause is delayed by a few milliseconds if you pause a few times in a run,
|
||||
// to avoid abuse of the "release to pause" feature on mobile.
|
||||
pauseTimeout: NodeJS.Timeout | null;
|
||||
// Whether the game should be rendered at the next tick, even if the game is paused
|
||||
needsRender: boolean;
|
||||
|
||||
// Current run score
|
||||
score: number;
|
||||
// levelTime of the last time the score increase, to render the score differently
|
||||
|
@ -241,3 +241,10 @@ export type RunParams = {
|
|||
levelToAvoid?: string;
|
||||
perks?: Partial<PerksMap>;
|
||||
};
|
||||
export type OptionDef = {
|
||||
default: boolean;
|
||||
name: string;
|
||||
help: string;
|
||||
disabled: () => boolean;
|
||||
};
|
||||
export type OptionId = keyof typeof options;
|
Loading…
Add table
Add a link
Reference in a new issue