How afterflow-gd/afterflow works
Afterflow is a Geometry Dash/Geode mod that predicts whether a press or release would be fatal, tests delayed ticks in a detached ghost simulation, and holds input until a surviving tick when possible. Its main runtime is concentrated in one source file, so several responsibilities below share that path. The same mod provides stage selection, a customizable in-game panel and logging, plus platform-specific terminal viewing. Workflow links are grounded in the README; sampled source excerpts show stage persistence and input handling, but not the full prediction implementation.
Main entry points: main.cpp Terminal launcher · afterflow-terminal-watch.sh Linux terminal watcher · afterflow-terminal.service User service
Components 18
Input prediction
- Input interception
src/main.cpp - Ghost simulation
src/main.cpp - Tick delay
src/main.cpp
Stages and settings
- Stage controls
src/main.cpp - Saved stage
src/main.cpp - Mod settings
src/main.cpp
In-game interface
- Control panel
src/main.cpp - Mobile AF button
src/main.cpp - Prediction log
src/main.cpp
Terminal logging
- Terminal launcher
src/main.cpp - Runtime log
src/main.cpp - Linux terminal watcher
afterflow-terminal-watch.sh - User service
afterflow-terminal.service
Other components
- Player input
- Geometry Dash
- Kitty viewer
- Windows viewer
- macOS viewer
Connections 21
- Player input → Input interception: sends input
README.md - Input interception → Ghost simulation: tests timing
README.md - Ghost simulation → Tick delay: finds survival tick
README.md - Tick delay → Geometry Dash: delivers input
README.md - Input interception → Geometry Dash: reads play state
src/main.cpp - Stage controls → Saved stage: persists selection
src/main.cpp - Stage controls → Input interception: sets prediction stage
src/main.cpp - Player input → Stage controls: cycles stage
README.md - Mod settings → Stage controls: configures keybinds
README.md - Player input → Control panel: opens panel
README.md - Mobile AF button → Control panel: opens panel
README.md - Control panel → Prediction log: shows recent log
README.md - Control panel → Mod settings: changes UI settings
README.md - Control panel → Terminal launcher: opens terminal
README.md - Terminal launcher → Runtime log: writes log
README.md - Terminal launcher → Linux terminal watcher: drops trigger
README.md - User service → Linux terminal watcher: runs watcher
README.md - Linux terminal watcher → Runtime log: tails log
README.md - Linux terminal watcher → Kitty viewer: toggles viewer
README.md - Terminal launcher → Windows viewer: launches viewer
README.md - Terminal launcher → macOS viewer: opens viewer
README.md