1.7 KiB
1.7 KiB
Task 3: SpireTab Overhaul - Context
Task Description
Feature Rework from task2.md
Requirements:
- 'Climb the Spire': Create an entry button navigating to a dedicated, locked "Spire Mode."
- Exit Condition: Player must "climb down" to exit.
- Persistent UI: Only ManaDisplay and CalendarDisplay remain. Display Spire info and Golems.
Current Implementation:
- SpireTab component is in
/home/user/repos/Mana-Loop/src/components/game/SpireTab.tsx - Currently shows Spire-related content in the main game UI
- Game state/progression managed in
src/lib/game/store.ts
What Needs To Be Done:
- Read
src/components/game/SpireTab.tsxto understand current implementation - Create a "Climb the Spire" button that enters a new "Spire Mode"
- Implement Spire Mode as a separate UI state:
- Only show ManaDisplay, CalendarDisplay, Spire info, and Golems
- Hide all other UI elements
- Add an "Climb Down" button to exit Spire Mode and return to normal game
- The Spire Mode should be "locked" until the player chooses to enter it
- Test the implementation
- Commit with message: "Task 2: SpireTab Overhaul - add Climb the Spire button, implement Spire Mode with exit condition"
Key Files To Examine:
src/components/game/SpireTab.tsx- main component to modifysrc/components/game/ManaDisplay.tsx- needs to remain visible in Spire Modesrc/components/game/CalendarDisplay.tsx- needs to remain visible in Spire Modesrc/lib/game/store.ts- manage Spire Mode state
Implementation Notes:
- Consider adding a
spireMode: booleanstate to the game store - Spire Mode is a simplified UI - only essential info
- "Climb the Spire" button should be in SpireTab
- "Climb Down" button should be visible in Spire Mode to exit