A 5-Round Prompt Recipe Turns Any Photo Into a 57-Frame Desktop Pet Sprite Sheet
Sprite sheet generation has been a tedious manual art task. A repeatable prompt template that produces consistent, game-ready sprite sheets from a photo lowers the barrier for custom desktop companions, streamers, and small game prototypes — no artist needed.
A single reference photo and a carefully engineered prompt can produce a 57-frame horizontal sprite sheet with nine distinct actions — idle blink, coding, bug fixing, error display, loading, celebration, peeking, sleeping, and supervising. The entire pipeline runs on AI image generation alone; no drawing or coding is required. The prompt is structured into five modules: character definition to lock identity across frames, action design for a programmer's narrative arc, layout control to prevent frame overlap and cropping, art style parameters for clean chibi outlines, and a pure green background for one-click transparency. Five rounds of iteration with Doubao fixed character drift, stiff motion, gradient backgrounds, green artifacts on the character, and flat expressions. The resulting sprite sheet drops into a Codex desktop pet via a JSON config that maps frame ranges to named animations.
Prompt engineering for sprite sheets is constraint engineering: telling the model what not to do (no gradients, no floor, no green on the character) matters more than describing the desired output.
The hardest AI habit to break was adding lighting and shadows to a background explicitly specified as solid green — a reminder that image models have strong priors that require negative prompting.
Frame counts are not arbitrary; 6 frames at typical animation speeds yields roughly a 1-second loop, which matches the rhythm of idle and coding actions.