01 A pet, not a cursor trail
I wanted something that felt alive on the desktop rather than a decoration glued to the pointer. So the characters react instead of copying: they keep their distance, line up behind each other, turn to look at you, and get distracted when nothing is happening.
The real app uses unofficial Chiikawa fan sprites by heelee912, which can't be redistributed — so the demo above shows the same behaviour with the astronaut and Insam from Triends.
02 Behaviour as a state machine
Each character runs a small state machine — rest, move, tumble, jump, wave, bored — driven by one shared timer that reads the cursor and ticks every pet.
- Cursor moves away: the characters follow in a line, each one trailing the one in front.
- Cursor moves nearby: they turn to look at it, in 16 directions in the app.
- Cursor flicks very fast: a moving character can trip and fall over, then gets back up. A 4-second cooldown keeps it funny instead of constant.
- Left click / right click: jump / wave. (On this page, a click lets them out instead.)
- Nothing happens for a while: each character drifts into its own idle habits.
03 Personality in numbers
Every character uses the same system with different values: walking speed, how close the cursor has to get before it reacts, how likely it is to fall over, and which idle actions it prefers. Changing a few numbers was enough to make one character feel careful and another one clumsy.
- SpeedHow quickly it catches up when the line stretches.
- ReactionHow near the cursor must be before it turns to look.
- ClumsinessIts chance of tumbling on a fast flick.
04 Small decisions
An early version had the characters gather around open windows, but that needed Accessibility and Finder access. I cut the feature: a desktop toy shouldn't ask for system permissions, and the app now needs none. Later tuning made the characters fall over less often — rare enough to be a surprise.
Under the hood, a sprite-sheet loader reads 8×11 sheets, detects how many frames each row has from transparency, and applies per-frame timings extracted from the original GIF delays. The menu bar handles hiding, choosing among 11 characters, size, and launch at login.