How namelessproj/namelessstory works
NamelessStory is a React visual-novel engine: creators supply a JSON story and media, and players move from the title screen into scenes with dialogue, choices or text input, then may save, load, or view credits. The graph separates story loading/state, page navigation, gameplay orchestration, and presentation plus supporting text/audio behavior. Relationships are limited to README statements and the shown source/index references; some unsampled page and credit components are represented by their exact paths without inferred internal calls.
Main entry points: VisualNovel/index.tsx Gameplay controller · VNPlayer/index.tsx Story loader · Scene/index.tsx Scene renderer · PageToDisplay/index.tsx Page dispatcher
Components 27
Story and state
- Story loader
src/components/VNPlayer/index.tsx - Story validation
src/utils/storySchema.ts - Shared state provider
src/context/DataProvider.tsx - Game state context
src/context/DataContext.ts - Typing state context
src/context/TypewriterContext.ts
Page navigation
- Application entry
src/App.tsx - Page dispatcher
src/components/PageToDisplay/index.tsx - Title screen
src/components/TitleScreen/index.tsx - Credits screen
src/components/CreditsComponents/CreditsPage/index.tsx
Novel gameplay
- Gameplay controller
src/components/VisualNovelComponents/VisualNovel/index.tsx - Scene renderer
src/components/VisualNovelComponents/Scene/index.tsx
Presentation and media
- Dialogue display
src/components/VisualNovelComponents/Dialogue/index.tsx - Choice options
src/components/VisualNovelComponents/OptionsGroup/index.tsx - Player text input
src/components/VisualNovelComponents/UserInput/index.tsx - Character sprites
src/components/VisualNovelComponents/CharacterFullSprite/index.tsx - Scene backgrounds
src/components/BackgroundImage/index.tsx - Gameplay overlays
src/components/VisualNovelComponents/VNTopOverlay/index.tsx - Transition effects
src/components/VisualNovelComponents/TransitionOverlay/index.tsx
Text and persistence
- Typewriter display
src/components/Typewriter/index.tsx - Text formatting
src/utils/markupParser.ts - Typing and pauses
src/utils/typewriterUtils.ts - Background music
src/hooks/useBGM.ts - Volume control
src/components/VolumeSlider/index.tsx - Save and load
src/utils/saveFile.ts - Browser save storage
src/utils/saveStorage.ts
Other components
- Story creator
- Story JSON
Connections 29
- Story creator → Story JSON: writes
README.md - Story JSON → Story loader: loads
src/components/VNPlayer/index.tsx - Story loader → Story validation: validates
src/components/VNPlayer/index.tsx - Story loader → Browser save storage: loads save
src/components/VNPlayer/index.tsx - Story loader → Save and load: parses save
src/components/VNPlayer/index.tsx - Story loader → Shared state provider: provides state
src/components/VNPlayer/index.tsx - Shared state provider → Game state context: provides
src/context/DataProvider.tsx - Shared state provider → Typing state context: provides
src/context/DataProvider.tsx - Application entry → Story loader: renders
src/App.tsx - Story loader → Page dispatcher: renders
src/components/VNPlayer/index.tsx - Page dispatcher → Title screen: selects page
src/components/PageToDisplay/index.tsx - Page dispatcher → Credits screen: selects page
src/components/PageToDisplay/index.tsx - Page dispatcher → Gameplay controller: selects page
src/components/PageToDisplay/index.tsx - Title screen → Save and load: loads save
src/components/TitleScreen/index.tsx - Gameplay controller → Scene renderer: renders
src/components/VisualNovelComponents/VisualNovel/index.tsx - Gameplay controller → Gameplay overlays: renders
src/components/VisualNovelComponents/VisualNovel/index.tsx - Gameplay controller → Transition effects: renders
src/components/VisualNovelComponents/VisualNovel/index.tsx - Gameplay controller → Background music: controls music
src/components/VisualNovelComponents/VisualNovel/index.tsx - Gameplay controller → Browser save storage: saves state
src/components/VisualNovelComponents/VisualNovel/index.tsx - Gameplay controller → Save and load: exports save
src/components/VisualNovelComponents/VisualNovel/index.tsx - Scene renderer → Scene backgrounds: renders
src/components/VisualNovelComponents/Scene/index.tsx - Scene renderer → Character sprites: renders
src/components/VisualNovelComponents/Scene/index.tsx - Scene renderer → Dialogue display: renders
src/components/VisualNovelComponents/Scene/index.tsx - Scene renderer → Choice options: renders
src/components/VisualNovelComponents/Scene/index.tsx - Scene renderer → Player text input: renders
src/components/VisualNovelComponents/Scene/index.tsx - Dialogue display → Typewriter display: renders
src/components/VisualNovelComponents/Dialogue/index.tsx - Typewriter display → Text formatting: parses markup
src/components/Typewriter/index.tsx - Typewriter display → Typing and pauses: tokenizes text
src/components/Typewriter/index.tsx - Volume control → Background music: controls volume
src/components/VolumeSlider/index.tsx