How bluebleaze/bellbound works
Bellbound is an educational pixel-art RPG: players customize a student, explore the school, trigger teacher exams, dodge subject-specific attacks, answer quiz questions, and progress toward a multi-stage ending. The graph preserves the README’s major support features—study aids, schedule, tutorial, dev menu, audio, and character rendering—alongside that main loop. Relationships are based on the README and the supplied source index or excerpts; some UI routing details are documented but not visible in the sampled code, so those links are dashed.
Main entry points: App.tsx Game State Manager · Overworld.tsx School Overworld · BattleArena.tsx Teacher Battles · questions.ts Subject Question Bank
Components 19
Game Flow
- Game State Manager
src/App.tsx - Game Types & Schedule
src/types.ts
World & Battle
- School Overworld
src/components/Overworld.tsx - Teacher Battles
src/components/BattleArena.tsx
Learning & Results
- Subject Question Bank
src/data/questions.ts - Study Notes
src/components/StudyNotesModal.tsx - Class Schedule
src/components/ScheduleModal.tsx - Victory Summary
src/components/VictoryModal.tsx - Three-Stage Ending
src/components/EndingModal.tsx
Character & UI
- Login & Difficulty
src/components/LoginScreen.tsx - Character Customizer
src/components/CustomizerModal.tsx - Pixel Sprite Renderer
src/components/PixelSprites.ts - Header HUD
src/components/HeaderHUD.tsx - Game Sidebar
src/components/GameSidebar.tsx - Tutorial
src/components/TutorialModal.tsx - Developer Menu
src/components/DevMenuModal.tsx
Audio
- Synthesized Sound Effects
src/utils/AudioEngine.ts - Music Playback Engine
src/utils/MusicEngine.ts
Other components
- Player
Connections 33
- Player → Game State Manager: plays
README.md - Game State Manager → School Overworld: shows exploration
src/App.tsx - School Overworld → Game State Manager: starts exam
src/App.tsx - Game State Manager → Teacher Battles: shows battle
src/App.tsx - Teacher Battles → Subject Question Bank: uses questions
src/components/BattleArena.tsx - Teacher Battles → Pixel Sprite Renderer: draws teacher
src/components/BattleArena.tsx - Teacher Battles → Synthesized Sound Effects: plays effects
src/components/BattleArena.tsx - Teacher Battles → Game State Manager: reports victory
src/App.tsx - Game State Manager → Login & Difficulty: shows login
src/App.tsx - Game State Manager → Character Customizer: shows customization
src/App.tsx - Game State Manager → Header HUD: renders HUD
src/App.tsx - Game State Manager → Game Sidebar: renders sidebar
src/App.tsx - Game State Manager → Tutorial: shows tutorial
src/App.tsx - Game State Manager → Developer Menu: offers dev controls
src/App.tsx - Game State Manager → Study Notes: shows study notes
src/App.tsx - Game State Manager → Class Schedule: shows schedule
src/App.tsx - Game State Manager → Victory Summary: shows victory
src/App.tsx - Game State Manager → Three-Stage Ending: opens final ending
src/App.tsx - Login & Difficulty → Pixel Sprite Renderer: previews character
src/components/LoginScreen.tsx - Character Customizer → Pixel Sprite Renderer: renders preview
src/components/CustomizerModal.tsx - School Overworld → Pixel Sprite Renderer: draws school sprites
src/components/Overworld.tsx - School Overworld → Subject Question Bank: reads teacher data
src/components/Overworld.tsx - School Overworld → Synthesized Sound Effects: plays effects
src/components/Overworld.tsx - Study Notes → Subject Question Bank: reads study notes
src/components/StudyNotesModal.tsx - Victory Summary → Subject Question Bank: reads subject data
src/components/VictoryModal.tsx - Three-Stage Ending → Subject Question Bank: reads teacher data
src/components/EndingModal.tsx - Three-Stage Ending → Pixel Sprite Renderer: renders character
src/components/EndingModal.tsx - School Overworld → Game State Manager: requests exam start
src/App.tsx - Game State Manager → Music Playback Engine: synchronizes music
README.md - Header HUD → Synthesized Sound Effects: plays effects
src/components/HeaderHUD.tsx - Game State Manager → Synthesized Sound Effects: controls sound
src/App.tsx - Game State Manager → Game Types & Schedule: uses game state types
src/App.tsx - School Overworld → Game Types & Schedule: uses schedule types
src/components/Overworld.tsx