feat: game state, persistence, UI framework (Alpine+Tailwind), economy system (#10, #11, #12)

- 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
This commit is contained in:
2026-10-07 12:38:18 +00:00
parent 6ef28b6dbd
commit eb50f3b56b
13 changed files with 1735 additions and 67 deletions
+15
View File
@@ -0,0 +1,15 @@
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;
}