mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-22 04:56:15 -04:00
wip
This commit is contained in:
parent
6d0ad5e675
commit
e9d58d6140
13 changed files with 4479 additions and 961 deletions
38
src/types.d.ts
vendored
Normal file
38
src/types.d.ts
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
import {rawUpgrades} from "./rawUpgrades";
|
||||
|
||||
export type RawLevel = {
|
||||
name: string;
|
||||
size: number;
|
||||
bricks: string;
|
||||
svg: string;
|
||||
color: string;
|
||||
};
|
||||
export type Level = {
|
||||
name: string;
|
||||
size: number;
|
||||
bricks: string[];
|
||||
svg: string;
|
||||
color: string;
|
||||
threshold?: number;
|
||||
sortKey?: number;
|
||||
};
|
||||
|
||||
export type Palette = { [k: string]: string }
|
||||
|
||||
export type Upgrade={
|
||||
threshold: number;
|
||||
giftable: boolean;
|
||||
"id": string;
|
||||
"name": string;
|
||||
"max": number;
|
||||
help: (lvl:string) => string;
|
||||
fullHelp: string;
|
||||
requires:PerkId|''
|
||||
}
|
||||
|
||||
|
||||
export type PerkId = typeof rawUpgrades[number]['id']
|
||||
|
||||
declare global {
|
||||
interface Window { webkitAudioContext: typeof AudioContext; }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue