How sinator12/css-codequest works
CSS CodeQuest is a browser-based CSS learning game. Players enter through the mode hub, choose a story battle, free-form sandbox, or structured lesson, then build CSS skills and track progression. The main internal layer is PlayerProgress, which stores XP, streaks, results, and topic diagnostics in localStorage. The README documents the mode and lesson wiring; sampled game and progress code confirms battle result updates and persistence. HTML page internals were not sampled, so those links rely on README statements. The curriculum builder is a development script, not a runtime product component.
Main entry points: index.html Mode Hub · progress.js Progress System · learn.html Lesson Browser · auth.js Google Auth
Components 12
Entry and Identity
- Mode Hub
index.html - Google Auth
auth.js
Adventure Mode
- Adventure Map
adventure.html - Battle Arena
game.html - Battle Logic
game.js
CSS Learning
- Practice Sandbox
practice.html - Lesson Browser
learn.html - CSS Curriculum
w3_lessons.js
Progression
- Progress System
progress.js - Browser Storage
Other components
- Player
- Firebase Auth
Connections 14
- Player → Mode Hub: opens
README.md - Mode Hub → Adventure Map: selects mode
README.md - Adventure Map → Battle Arena: opens stage
README.md - Battle Arena → Battle Logic: runs
README.md - Battle Logic → Progress System: records results
game.js - Mode Hub → Progress System: shows stats
README.md - Progress System → Browser Storage: reads and writes
progress.js - Mode Hub → Practice Sandbox: selects mode
README.md - Practice Sandbox → Player: previews CSS
README.md - Mode Hub → Lesson Browser: selects mode
README.md - Lesson Browser → CSS Curriculum: uses lessons
README.md - Lesson Browser → Progress System: tracks completion
- Player → Google Auth: signs in
README.md - Google Auth → Firebase Auth: authenticates with
auth.js