How nikzbyte/in-other-words works
In Other Words is a Java visual novel that combines campus exploration, character relationships, and practice in Cebuano, Ilokano, and Central Bikol. The player enters through the game UI, explores maps and interacts with classmates, then follows a four-chapter story with choices and typed language challenges; progress and endings reflect their play. The graph also shows the vocabulary dictionary, save state, and optional AI answer checking. Edges rely on the README and SOURCE INDEX references; unsampled implementation details are not assumed.
Main entry points: GamePanel.java Game interface · StoryManager.java Story progression · GameProgress.java Playthrough state · StoryView.java Story presentation
Components 28
Game runtime
- Game launcher
src/main/Main.java - Game interface
src/main/GamePanel.java - Keyboard input
src/main/KeyHandler.java - Player and classmates
src/entity/Player.java - World entities
src/entity/Entity.java - Campus events
src/main/EventHandler.java - Map and tiles
src/tile/TileManager.java
Story and dialogue
- Story script
src/story/StoryScript.java - Story progression
src/story/StoryManager.java - Story presentation
src/story/StoryView.java - Dialect highlighting
src/story/DialectHighlighter.java - Story sprites
src/story/StorySprites.java
Language learning
- Vocabulary dictionary
src/data/Dictionary.java - Answer validation
src/mechanics/AnswerValidator.java - AI tutor service
src/ai/TutorService.java - Gemini tutor
src/ai/GeminiTutor.java - Offline tutor
src/ai/OfflineTutor.java - Gemini API client
src/ai/GeminiClient.java
Progression
- Dialogue mechanics
src/mechanics/DialogueManager.java - Affection scoring
src/mechanics/AffectionManager.java - Partner selection
src/mechanics/PartnerManager.java - Chapter stages
src/mechanics/StageManager.java - Story endings
src/mechanics/EndingManager.java
Data and AI
- Playthrough state
src/data/GameProgress.java - Save and resource files
src/data/FileManager.java - Vocabulary entries
src/data/VocabularyEntry.java
Other components
- Player
- Gemini service
Connections 38
- Player → Game interface: plays
- Game launcher → Game interface: opens
src/main/Main.java - Game interface → Keyboard input: handles input
src/main/GamePanel.java - Game interface → Player and classmates: updates and draws
src/main/GamePanel.java - Player and classmates → World entities: inherits
src/entity/Player.java - Game interface → Campus events: routes events
src/main/GamePanel.java - Game interface → Map and tiles: uses maps
src/main/GamePanel.java - Player → Game interface: explores campus
- Game interface → Story progression: starts story
src/main/GamePanel.java - Game interface → Story presentation: presents story
src/main/GamePanel.java - Game interface → Story script: loads story
src/main/GamePanel.java - Story presentation → Story progression: advances dialogue
src/story/StoryView.java - Story presentation → Dialect highlighting: highlights dialect
src/story/StoryView.java - Story presentation → Story sprites: renders sprites
src/story/StoryView.java - Game interface → Vocabulary dictionary: shows vocabulary
src/main/GamePanel.java - Vocabulary dictionary → Vocabulary entries: uses entries
src/data/Dictionary.java - Story progression → Answer validation: checks answers
src/story/StoryManager.java - Story presentation → AI tutor service: requests answer check
src/story/StoryView.java - AI tutor service → Gemini tutor: selects online tutor
src/ai/TutorService.java - AI tutor service → Offline tutor: falls back
src/ai/TutorService.java - Gemini tutor → Gemini API client: delegates checks
src/ai/GeminiTutor.java - Gemini API client → Gemini service: sends requests
src/ai/GeminiClient.java - Story progression → Dialogue mechanics: uses mechanics
- Dialogue mechanics → Answer validation: validates responses
src/mechanics/DialogueManager.java - Dialogue mechanics → Affection scoring: updates affection
src/mechanics/DialogueManager.java - Story progression → Affection scoring: applies scoring
src/story/StoryManager.java - Story progression → Partner selection: routes partner choice
src/story/StoryManager.java - Story progression → Story endings: routes endings
src/story/StoryManager.java - Chapter stages → Dialogue mechanics: coordinates chapters
src/mechanics/StageManager.java - Story progression → Playthrough state: reads and updates
src/story/StoryManager.java - Dialogue mechanics → Playthrough state: updates progress
src/mechanics/DialogueManager.java - Affection scoring → Playthrough state: updates score
src/mechanics/AffectionManager.java - Partner selection → Playthrough state: updates partner
src/mechanics/PartnerManager.java - Chapter stages → Playthrough state: updates stage
src/mechanics/StageManager.java - Story endings → Playthrough state: reads ending state
src/mechanics/EndingManager.java - Game interface → Save and resource files: saves and loads
src/main/GamePanel.java - Save and resource files → Playthrough state: persists progress
src/data/FileManager.java - Save and resource files → Vocabulary entries: loads vocabulary
src/data/FileManager.java