Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | export type Rarity = 'consumer' | 'industrial' | 'milspec' | 'restricted' | 'classified' | 'covert'; export type MatchResult = 'match' | 'mismatch'; export interface MatchRecord { a: Tile; b: Tile; result: MatchResult; timestamp?: number; } export interface GameHistoryEntry { dateStart: string | null; dateEnd: string | null; time: number; moves: number; seed: string; difficulty: number; matchCount: number; mismatchCount: number; matchedPairs: MatchRecord[]; } export interface Tile { id: number; name: string; rarity: Rarity; pairId: number; flipped: boolean; matched: boolean; x: number; y: number; imagePath?: string; color?: string; value?: number; haloAngle?: number; } export interface Skin { id: number; name: string; imagePath: string; rarity: Rarity; } export interface GameState { dateStart: string | null; tiles: Tile[]; elapsedSeconds: number; moves: number; seed: string; difficulty: number; matchCount: number; mismatchCount: number; matchedPairs: MatchRecord[]; } export type ParallaxState = { mouseX: number; mouseY: number; }; |