by prsevend
a predictive input cheat that fixes your early clicks and makes them accurate
built for geometry dash 2.2 (gd 2.2081 geode 5.11.2 windows). no menus and no in-game overlay: f6 cycles stages in-level and f9 toggles a terminal with a live log (kitty on linux/proton or a powershell log viewer on native windows). both keys are geode keybind settings so you can rebind them in mod settings or the keybinds popup
geometry dash runs physics at a fixed 240 ticks per second. afterflow keeps a hidden ghost player and for every press or release it tests the input at its current tick and at delays of 1..n ticks. if pressing now would kill you but a delayed version survives the input is held back and delivered on the surviving tick. the same check runs for releases so early clicks and early let-gos can both be corrected
the prediction understands cube, ball, ufo, spider, swing, wave, robot and ship movement plus orbs, pads, gravity portals, size portals, speed portals and click between frames' mid tick clicks. it never changes the real level state since ghosts are simulated in a detached layer and every object they touch is restored afterwards
afterflow uses geode keybind settings. open mod settings → afterflow (or geode's keybinds popup) to change them
| Setting | Default | Where |
|---|---|---|
| Cycle Stage | F6 | in-level |
| Terminal | F9 | everywhere |
the first launch shows a one time note with the current bindings and a shortcut to mod settings. a saved flag records that it was seen so it does not come back
press f6 (or your bound cycle stage key) in level to cycle. the stage is remembered across sessions. the key also works while the terminal is focused
| Stage | All modes | Wave |
|---|---|---|
| 1 | 2 ticks | 2 ticks |
| 2 | 4 ticks | 4 ticks |
| 3 | 8 ticks | 8 ticks |
| 4 | 16 ticks | 8 ticks |
| 5 | 24 ticks | 12 ticks |
| 6 | 32 ticks | 16 ticks |
| 7 | 40 ticks | 20 ticks |
| 8 | off - 100% raw input | off |
at 60 fps one frame is 4 ticks so 4 ticks is 1.0f @ 60fps and 16 ticks is 4.0f @ 60fps
the game runs as a windows process under proton so it cannot start a linux program directly. afterflow writes a live log to /dev/shm/afterflow-<user>/terminal.log (where <user> is your linux username) and drops a trigger file at /dev/shm/afterflow-<user>/open-kitty. /dev/shm is memory-backed, so the log and runtime files disappear on reboot; if /dev/shm is unavailable afterflow falls back to /tmp/afterflow-<user>. a small systemd user service watches the trigger and toggles the real kitty window on the host while tailing that log. the terminal key (default f9) opens the terminal when it is closed, raises it when it is open but not focused, and closes it when it is focused. the live messages are not duplicated to the geode console; only warnings and errors are logged there
afterflow detects whether it is running under proton, native windows, or native macos and picks the matching terminal. on native windows the terminal key launches powershell directly with a small winforms log viewer (title Afterflow). the log is a transient %TEMP%\afterflow-terminal-<pid>.log opened with delete-on-close, so windows removes it when the game exits. the viewer stays on top and tails the log. the systemd/kitty path is only used under proton
if the viewer does not appear, afterflow shows a notification and writes the powershell error to the geode console. if the game is in exclusive fullscreen, switch to borderless or windowed so the viewer can be raised above it.
on native macos the terminal key opens terminal.app with a bash log viewer (title Afterflow) that tails $TMPDIR/afterflow-<user>/terminal.log. the runtime directory is per-user and temporary, and no service or extra dependency is needed
one setting controls the terminal: enable terminal turns the terminal key on or off and defaults to on
the terminal captures f6 and f9 to match the default bindings so key escape sequences are not echoed. f6 forwards a stage cycle request to the game and f9 closes the window. if you rebind the settings the in game keys change but the terminal's capture keys stay f6/f9. the same capture works in the native windows and macos terminals
the service is included as afterflow-terminal-watch.sh + afterflow-terminal.service:
install -Dm755 afterflow-terminal-watch.sh ~/.local/bin/afterflow-terminal-watch.sh
mkdir -p ~/.config/systemd/user
cp afterflow-terminal.service ~/.config/systemd/user/
systemctl --user daemon-reload
systemctl --user enable --now afterflow-terminal.servicethe service starts with your user session and reads the running hyprland environment itself, so you do not need to import wayland variables manually. after updating, re-copy the unit and run systemctl --user daemon-reload then systemctl --user restart afterflow-terminal.service. if f9 still does nothing, check /dev/shm/afterflow-<user>/watch.log, /dev/shm/afterflow-<user>/kitty.log, and journalctl --user -u afterflow-terminal.service
requires kitty on linux/proton. native windows uses powershell and needs no service. on hyprland the service also applies a floating centered window rule and raises the window above the game. on other compositors the log window still opens but placement is left to the window manager
you need geode sdk 5.11.2 plus cmake 3.29+ plus clang plus the 2.2081 bindings
# linux cross compiling a windows mod
export GEODE_SDK=/path/to/geode-sdk
export GEODE_BINDINGS_REPO_PATH=/path/to/geode-bindings # only needed for the 2.2081 binding fixes
geode build -p windows
# windows
set GEODE_SDK=C:\path\to\geode-sdk
geode build
# macos (native, builds arm64 and x86_64 by default)
export GEODE_SDK=/path/to/geode-sdk
geode buildthe packaged mod ends up in build-win/ when cross compiling from linux (build/ on windows) and it also gets copied into the game's geode/mods folder automatically
copy the resulting .geode file into geometry dash's geode/mods folder and restart the game. enable afterflow in the geode mod list. the defaults work out of the box so you can rebind the two keys in mod settings if you want different ones
dynamic mod whitechocolate click before frames
lucide.dev for icon
this is a cheat. it changes input timing so your runs are not legit. dont use it on rated levels or leaderboard submissions or anything you want to claim as legit. some levels and lists have input buffer or macro detectors so you can get flagged.