Browse Source
Add character sheet, fix mobile double-tap combat
Add character sheet, fix mobile double-tap combat
- Phase 3: Character sheet modal (click class name in HUD) - Display all stats (HP, MP, ATK, DEF) - Show XP progress bar with level milestones - Show unlocked/locked skills based on level - Fix mobile double-tap inconsistency (50/50 bug) - Add monster check to native touchend handler - Block press-and-hold navigation when monsters present - Both touch handlers now consistently prioritize combat - Increase monster touch targets to 70x70 with visible tap area - Add pointer-events:none to trails in nav mode - Add interactive:false to accuracy circles 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>master
4 changed files with 1510 additions and 89 deletions
-
127database.js
-
1307index.html
-
99server.js
-
66to_do.md
1307
index.html
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,66 @@ |
|||||
|
# HikeMap RPG System - Todo List |
||||
|
|
||||
|
## Phase 1: Login on Load - COMPLETED |
||||
|
- [x] Remove icon chooser from initial page load |
||||
|
- [x] Show auth modal if no `accessToken` in localStorage |
||||
|
- [x] Add "Continue as Guest" button to auth modal |
||||
|
|
||||
|
## Phase 2: Character Creator - COMPLETED |
||||
|
- [x] Add character creator modal HTML/CSS |
||||
|
- [x] Implement race selection with stat preview |
||||
|
- Human, Elf, Dwarf, Halfling |
||||
|
- [x] Implement class selection (Trail Runner available, others grayed "Coming Soon") |
||||
|
- Trail Runner (available) |
||||
|
- Gym Bro (coming soon) |
||||
|
- Yoga Master (coming soon) |
||||
|
- CrossFit Crusader (coming soon) |
||||
|
- [x] Add character name input |
||||
|
- [x] Update database schema (character_name, race columns in rpg_stats) |
||||
|
- [x] Create `/api/user/character` endpoint |
||||
|
- [x] Wire up creation flow after login |
||||
|
|
||||
|
## Phase 3: Character Sheet - COMPLETED |
||||
|
- [x] Create character sheet modal UI |
||||
|
- [x] Display all stats (HP, MP, ATK, DEF, etc.) |
||||
|
- [x] Show XP progress bar with level milestones |
||||
|
- [x] Show unlocked skills with descriptions (locked skills shown as grayed out) |
||||
|
- [ ] Display equipped items (pending equipment system - Phase 5) |
||||
|
- [ ] Add combat statistics (future enhancement) |
||||
|
|
||||
|
## Phase 4: Skill Selection System |
||||
|
- [ ] Create skill pools per class |
||||
|
- [ ] Add level-up skill choice modal (2-3 options per level) |
||||
|
- [ ] Update database to store unlocked_skills (JSON array) |
||||
|
- [ ] Add pending_skill_level field for pending choices |
||||
|
- [ ] Wire into level-up flow |
||||
|
|
||||
|
## Phase 5: Equipment System |
||||
|
- [ ] Create items table in database |
||||
|
- [ ] Create player_inventory table |
||||
|
- [ ] Define equipment slots: Weapon, Armor, Accessory |
||||
|
- [ ] Add class-specific accessories |
||||
|
- [ ] Implement monster loot tables |
||||
|
- [ ] Add equipment UI to character sheet |
||||
|
- [ ] Calculate effective stats with equipment bonuses |
||||
|
|
||||
|
## Phase 6: Admin Editor |
||||
|
- [ ] Create admin.html (separate page) |
||||
|
- [ ] Add admin authentication middleware |
||||
|
- [ ] User management (list, edit stats, grant admin) |
||||
|
- [ ] Monster management (CRUD for monster_types) |
||||
|
- [ ] Spawn control (manual monster spawning) |
||||
|
- [ ] Game balance settings |
||||
|
|
||||
|
--- |
||||
|
|
||||
|
## Completed |
||||
|
- [x] RPG combat system with turn-based battles |
||||
|
- [x] Trail Runner class with skills |
||||
|
- [x] Discarded GU monster with variants |
||||
|
- [x] Multi-monster combat encounters |
||||
|
- [x] XP bar in HUD |
||||
|
- [x] Stat persistence fix (authToken → accessToken) |
||||
|
- [x] Phase 1: Login on Load |
||||
|
- [x] Phase 2: Character Creator |
||||
|
- [x] Monster persistence (monsters saved to database, persist across login/logout) |
||||
|
- [x] Phase 3: Character Sheet (click class name in HUD to view) |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue