How wieku/danser-go works
danser-go is a GUI/CLI osu!standard map visualizer and replay player that can record output to video. Its main workflow selects or imports a map, parses it, drives either generated cursor dance or replay/player input through the osu! ruleset, renders gameplay and overlays, and optionally encodes frames. The graph combines README capabilities with the shown excerpts and SOURCE INDEX references; some subsystems, notably launcher and performance-calculation internals, are represented by their exact enclosing paths because their implementation was not sampled.
Main entry points: player.go Gameplay state · app.go App runtime · ruleset.go Osu ruleset · beatmap.go Beatmap model
Components 21
Entry and setup
- GUI launcher
launcher - App runtime
app/app.go
Maps and settings
- Settings manager
app/settings/manager.go - Map database
app/database/manager.go - Beatmap parser
app/beatmap/parser.go - Beatmap model
app/beatmap/beatmap.go - Skin assets
app/skin/skin.go
Gameplay simulation
- Replay controller
app/dance/rcontroller.go - Live play input
app/dance/pcontroller.go - Cursor dance
app/dance/controller.go - Osu ruleset
app/rulesets/osu/ruleset.go - Performance calculation
app/rulesets/osu/performance
Rendering and output
- Gameplay state
app/states/player.go - Cursor rendering
app/graphics/cursor.go - Gameplay overlays
app/states/components/overlays - Storyboard
app/storyboard/parser.go - Video recorder
app/ffmpeg/video.go
External services
- osu! API client
app/osuapi/api.go - FFmpeg process
- osu! service
Other components
- User
Connections 26
- User → GUI launcher: starts GUI
- User → App runtime: runs CLI
- GUI launcher → App runtime: starts runtime
- App runtime → Settings manager: loads config
app/app.go - App runtime → Map database: updates maps
app/app.go - App runtime → Gameplay state: runs gameplay
app/app.go - App runtime → Video recorder: starts recording
app/app.go - Map database → Beatmap parser: parses maps
app/database/manager.go - Beatmap parser → Beatmap model: builds model
app/beatmap/parser.go - Gameplay state → Beatmap model: uses map
app/states/player.go - Gameplay state → Replay controller: selects replay control
app/states/player.go - Gameplay state → Live play input: selects live control
app/states/player.go - Gameplay state → Cursor dance: selects dance control
app/states/player.go - Replay controller → Osu ruleset: updates judgments
app/dance/rcontroller.go - Live play input → Osu ruleset: creates ruleset
app/dance/pcontroller.go - Cursor dance → Beatmap model: schedules objects
app/dance/controller.go - Cursor dance → Cursor rendering: creates cursors
app/dance/controller.go - Osu ruleset → Beatmap model: evaluates objects
app/rulesets/osu/ruleset.go - Osu ruleset → Performance calculation: calculates performance
app/rulesets/osu/ruleset.go - Gameplay state → Cursor rendering: draws gameplay
app/states/player.go - Gameplay state → Gameplay overlays: uses components
app/states/player.go - Gameplay state → Storyboard: renders storyboard
- Gameplay state → osu! API client: requests API data
app/states/player.go - osu! API client → osu! service: calls service
- Skin assets → Settings manager: reads skin settings
app/skin/skin.go - Video recorder → FFmpeg process: encodes frames
app/ffmpeg/video.go