# Project Tasks: Warhammer Quest 3D ## Phase 1: Dungeon Generation Engine (Priority) - [x] **Core Data Structures** - [x] Define Tile Data (Dimensions, Exits, Type) - [x] Define Dungeon Deck System (Cards, Shuffling, Probability) - [x] Define Mission Configuration Structure (Objective vs Exit) - [x] **Grid & Logic System** - [x] Implement Tile Placement Logic (Collision Detection, Alignment) - [x] Implement Connection Points (Exits/Entrances matching) - [x] Implement "Board" State (Tracking placed tiles) - [x] **Generation Algorithms** - [x] Basic "Next Tile" Generation Rule - [x] Implement "Exit Room" Logic for Non-Final Missions - [x] Implement "Objective Room" Logic for Final Missions - [x] Create Loop for Full Dungeon Generation (Stopped for manual exploration) ## Phase 2: 3D Visualization & Camera - [x] **Scene Setup** - [x] Setup Three.js Scene, Light, and Renderer - [x] Implement Isometric Camera (Orthographic) - [x] Implement Fixed Orbit Controls (N, S, E, W snapshots) - [x] **Asset Management** - [x] Tile Model/Texture Loading - [x] dynamic Tile Instancing based on Grid State ## Phase 3: Game Mechanics (Loop) - [IN PROGRESS] - [x] **Turn System** - [x] Define Phases (Power, Movement, Exploration, Combat) - [x] Implement Turn State Machine (Phases now functional and dispatch events) - [x] Implement Power Phase (Rolls 1d6) - [x] **Event System** - [x] Implement Event Deck (Events.js) - [x] Trigger Random Events on Power Roll of 1 or Room Reveal - [x] Spawn Monsters from Event Cards (1d6 Orcs) - [x] **Entity System** - [x] Define Hero/Monster Stats (Heroes.js, Monsters.js) - [x] Implement Hero Movement Logic (Grid-based, Interactive) - [x] Implement Monster AI (Sequential Movement, Pathfinding, Attack Approach) - [x] Implement Combat Logic (Melee Attack Rolls, Damage, Death State) - [x] Implement Game Loop Rules (Exploration Stop, Continuous Combat, Phase Skipping) - [ ] Refine Combat System (Ranged weapons, Special Monster Rules, Magic) ## Phase 4: Campaign System - [ ] **Campaign Manager** - [ ] Save/Load Campaign State - [ ] Unlockable Missions Logic - [ ] Hero Progression (Between missions)