Cultist Avatars Reacting
19 hooded cultists with 17 poses each, drawn by hand and extended with image generation. Part of the Box of Cards work.
TS · NodeJs · Affinity Photo · OpenAI API · Claude Code · Agentic Coding · Prompt Engineering · gpt-image-2 · sharp · React · WebP · ChatGPT · Affinity Designer
From Emoji Faces to a Cult
The old avatars were round SVG emoji faces. They were not exciting or cute and nothing you could market. I heard you have to build a cult around your product, so I did exactly that. Now the players are cute, quirky cultists who take their task very seriously. I found no artist on the common platforms whose style came close, and the artists behind games I like are way out of my budget. So I made them myself. They are about 90 % of where I want them, and once the game makes money I'd like to have them redone.
Less Paper, Less Detail
My first ideas put the card and paper theme into the clothes, down to folded robes. I toned that down over time. Realism and detail had to go down a lot as well, so they would fit my UI. The throne version had a nice touch though.
Shoulders Up, No Arms
Then size became the problem. A goose with a long neck is iconic but doesn't fit the UI, so every avatar is shoulders up and has no arms by default. It also turns out that cute but simple avatars drift into Disney or Nintendo style quickly. These are only the key images where I changed direction. Behind them there was a lot more testing.
Draw, Generate, Redraw
The idles are not straight generations. I generated ideas, redrew them, generated again from the redraw and redrew again. The whole iteration took weeks. Most of that time went into painting by hand, in between and on the final versions, on top of masking, cutting, filters and colour correction.
Twelve Poses in One Generation
19 avatars with 17 poses each are hundreds of drawings, too many to do all by hand. Once the base cast was solid I used a representative set as references and generated the rest. Those needed far less editing. The poses are reactions to gameplay. Selecting and choosing are active, eating, sneezing and blinking are stateless reactions, and the cardinal, the player who reads the cards, wears the hood. A sheet is one generation, so all twelve poses compete for detail. The OpenAI API with gpt-image-2 renders 3072x2304, which is ~512 px per pose and matches the shipped size. The model can't do transparency, so sheets come back on grey and get keyed out.
Design Cheap, Buy Once
I start with prompt ideas until the style is right, then refine them as 1024x768 drafts for ~7 cents each. Only an approved draft goes to production, as the only reference for the full sheet. Production never goes back to draft, that would be a waste of money. ChatGPT is better at creative iterations and adjusting prompts. Claude is better at the automated parts, like running the renders through skills with a hook that allows one render per approval, but it is really bad at adjusting prompts.
Prompt Engineering
Style drifts between sheets, so the house look is written down: head size, proportions, one outline weight and two colours per avatar plus the robe. New idles get checked against it before they ship. To keep the art style coherent I used Claude skills to optimize Claude skills that create Claude skills, which then optimize my prompts. With only one reference avatar the model copies its body. The chinchilla grew fox ears.
The Robe Doesn't Move
Generated idles shifted the robe a little per avatar, so the picker jumped whenever you switched. Now every idle uses one master robe in the same place and the frontend only needs one baseline for all of them. The robe changed three times. The gold pendant looked AI generated, then came walnut piping, and now it is two plain cream bands.
Never Pay for What Code Fixes
Outline, keying, framing, baseline and hue get fixed in code, not with another render. Node.js scripts using sharp slice the sheet, clean up the outline and bake in the cream sticker ring. The cutting isn't perfect, so in between I still paint over issues by hand. 'Choosing' isn't generated at all. It is 'selecting' with the yellow card recoloured green, for all 19 avatars in one script run.
They React, and Everyone Sees the Same Reaction
The game state picks which of the 17 poses is shown. When answers are revealed the avatars laugh or look shocked for two seconds. A hash picks the reaction, so every client shows the same one without syncing. In between they blink, sneeze or take a bite, and every avatar eats its own favourite food. Some issues are still in there. The light dot in the fox's eye is a reflection and not a pupil, so moving it is wrong.
Iconic by Accident
Some things can't be generated. An elephant with long tusks holding cards, a kingfisher looking slightly to the side or eating a hot dog all needed manual edits. This hooded kingfisher came out iconic by accident.
Lore for Later
Besides the avatars I sketched gods and creatures for the cult. They are lore ideas I might add later. The cultists pray to these gods and try to find the truth. Finding true answers summons their god.