How kauri-off/th_08 works
This is a clean-room Rust reimplementation of Touhou 8. Its main workflow is: accept keyboard input and original game data, initialize the engine, run menu or stage gameplay frame by frame, render and play audio, then produce results and persist scores. The graph retains the README’s major gameplay, replay, and presentation capabilities. Some domain links rely on documented capabilities or SOURCE INDEX references; unsampled implementation details are not asserted.
Main entry points: game.rs Engine context · app.rs Window and loop · anmmgr.rs Animation manager · player.rs Player and shot types
Components 25
Runtime and assets
- Window and loop
src/app.rs - Engine context
src/game.rs - Data archive
src/archive.rs - Input state
src/input.rs - Task scheduler
src/task.rs
Game flow
- Menus and selection
src/menu.rs - Stages and progression
src/stage.rs - Game manager
src/gamemgr.rs - ECL scripts
src/eclvm.rs
Combat simulation
- Enemies and bosses
src/enemy.rs - Player and shot types
src/player.rs - Bullets and lasers
src/bullet.rs - Items
src/item.rs - Bombs and spells
src/bomb.rs
Presentation
- Animation manager
src/anmmgr.rs - Animation VM
src/anmvm.rs - Renderer
src/gfx.rs - HUD and dialogue
src/hud.rs - Music and sound
src/audio.rs
Replay and records
- Replay playback
src/replay.rs - Recorded sessions
src/session.rs - Results and name entry
src/result.rs - Score persistence
src/scoredat.rs
Other components
- Player
- Original game data
Connections 30
- Player → Window and loop: provides input
- Original game data → Window and loop: supplies files
- Window and loop → Engine context: initializes
src/app.rs - Window and loop → Input state: updates keys
src/app.rs - Engine context → Data archive: loads archive
src/game.rs - Engine context → Music and sound: initializes audio
src/game.rs - Engine context → Score persistence: loads scores
src/game.rs - Engine context → Game manager: owns game state
src/game.rs - Engine context → Task scheduler: runs frame tasks
src/game.rs - Engine context → Renderer: draws frames
src/game.rs - Engine context → Input state: reads controls
src/game.rs - Engine context → Replay playback: logs replay data
src/game.rs - Game manager → Menus and selection: supports selection
- Game manager → Stages and progression: advances stages
- Stages and progression → ECL scripts: runs stage scripts
- ECL scripts → Enemies and bosses: controls enemies
src/eclvm.rs - Enemies and bosses → Bullets and lasers: manages attacks
src/enemy.rs - Player and shot types → Bullets and lasers: checks collisions
src/player.rs - Player and shot types → Items: collects items
src/player.rs - Player and shot types → Bombs and spells: uses bombs
src/player.rs - Enemies and bosses → Animation manager: updates animations
src/enemy.rs - Animation manager → Animation VM: runs scripts
src/anmmgr.rs - Animation manager → Renderer: submits sprites
src/anmmgr.rs - HUD and dialogue → Animation manager: draws interface
- Engine context → HUD and dialogue: presents status
- Engine context → Results and name entry: shows results
- Results and name entry → Score persistence: saves score
- Replay playback → Recorded sessions: replays sessions
- Original game data → Music and sound: provides BGM
- Player → Recorded sessions: records play