- Game state with localStorage save/load + reset (type DELETE to confirm) - Alpine.js + Tailwind CSS + Lucide UI overlay (HUD bar, shop modal, settings, toasts) - Economy: fish prices, tank tier costs/capacities, rarity multipliers, sell value formula - Genetic system: hue/saturation/size/speed/pattern/rarity/gender + breeding inheritance - Fish selection via raycaster (click fish = select, click empty = drop food) - Buy/Sell/Breed/Upgrade actions wired to game state
16 lines
520 B
TypeScript
16 lines
520 B
TypeScript
declare module "alpinejs" {
|
|
interface AlpineData {
|
|
data(key: string, value: () => any): void;
|
|
store(name: string, value: Record<string, any>): void;
|
|
start(): void;
|
|
addDirective(name: string, handler: (...args: any[]) => void): void;
|
|
magic(name: string, handler: (...args: any[]) => any): void;
|
|
}
|
|
const Alpine: AlpineData & {
|
|
data: (key: string, value: () => any) => void;
|
|
store: (name: string, value: Record<string, any>) => void;
|
|
start: () => void;
|
|
};
|
|
export default Alpine;
|
|
}
|