Public beta — bugs are expected. Questions or issues? .
Skip to content

Game SDK Art Direction

Art direction for Originals

Every Original gets the same high-quality look as the cliparts of the GTA and Supermarket mods: reference images from the mods, painting on white, cutting out, a fixed post-processing and a visual check as a Gift Wall. The agent kit makes it binding and ships the tool for it.

Applies to
Action images and store material of every Original
Action image
512×512 PNG with alpha, ≤ 300 KB
Tool
tools/art/generate-action-images.mjs
Approval
2 test images before the rest
On this page

Binding

Common look

Action images appear on the Gift Wall, on the preset cards and in the store. The binding text is ART-DIRECTION.md in the agent kit (German: ART-DIRECTION.de.md), in a game repository under animstream/.

  • Glossy 3D cartoon clipart like the mod cliparts: one clear motif, centred, strong silhouette, rounded shapes, saturated colours, soft studio light with a bright rim light, slight three-quarter view.
  • Transparent background, no frame, no ground shadow.
  • Readable as a 64 px tile on a dark and on a light background.
  • Game reference: every image contains at least one element of the game's world (character, mascot, game objects in the game's colours), so the set belongs together.
  • Text: none. Exception: one very short, self-explanatory sign such as "2X", "TAX" or "GAME OVER".
  • Good and evil at a glance: mercy actions with green accents or a check mark, sabotage with red/orange, a warning or prohibition sign.
  • Mascot: with its own reference image, in at most a quarter of the images.
ItemSizeFile
Action image512×512 (448/384)PNG with alpha, ≤ 300 KB, media/actions/<id>.png
Cover1920×1080de + en, lower left corner free
Icon1024×1024no text, recognisable at 32 px
SplashPortraitcalm lower area for the logo
Trailer + poster16:9 + 9:16each de + en, poster as JPG

Examples

Good and bad

Every image large and at the Gift Wall size, on a dark background on the left and a light one on the right. The good examples are the style pack from the agent kit.

What it should look like

GTA · HealGTA · Heal
GTA · HealGTA · Heal

Good

GTA · Heal

Character plus mercy effect: green plus, heart.

GTA · ExplosionGTA · Explosion
GTA · ExplosionGTA · Explosion

Good

GTA · Explosion

Effect, sabotage: orange burst, clear shape.

Supermarket · Add moneySupermarket · Add money
Supermarket · Add moneySupermarket · Add money

Good

Supermarket · Add money

Game object with a face, green plus.

Supermarket · ThiefSupermarket · Thief
Supermarket · ThiefSupermarket · Thief

Good

Supermarket · Thief

Character with game objects, sabotage.

Supermarket · DiscoSupermarket · Disco
Supermarket · DiscoSupermarket · Disco

Good

Supermarket · Disco

Effect and game objects in one motif.

Not like this

Deliberately bad, synthetic examples and what catches them.

Not cut outNot cut out
Not cut outNot cut out

Bad

Not cut out

A white square behind the motif: a glaring box on the dark Gift Wall.

Caught by: Warning "has almost no transparency"

Text and frameText and frame
Text and frameText and frame

Bad

Text and frame

Sentences, a UI frame, no motif: unreadable at 64 px.

Caught by: Visual check (contact sheet)

Tiny and low contrastTiny and low contrast
Tiny and low contrastTiny and low contrast

Bad

Tiny and low contrast

A small grey motif in a large empty canvas: disappears on a dark background.

Caught by: Warning "is almost completely transparent"; the tool fits every motif with an 8 % margin

One colourOne colour
One colourOne colour

Bad

One colour

A flat shape without light or form: no 3D clipart, a failed image.

Caught by: Warning "is almost one colour"

Style pack

Reference images

  • The agent kit holds five approved AnimStream cliparts from the GTA and Supermarket sets under art/reference/ (transparent PNG); the installer puts them in animstream/art/reference/. They are the generator's style reference.
  • Licence: only as a reference for image generation, never shipped in a game, a build or store material.
  • No TikTok gift images as references or in the game: they are someone else's brand, and the Gift Wall shows the gifts itself.
  • The game's own references (mascot, game objects, colour palette) come from the developer and are listed in tools/art/action-prompts.json.

Process

Two-step process

Most image generators deliver no real transparency. The tool therefore makes every image in fixed steps:

  1. 01
    Paint with a model that accepts reference images (fal.ai fal-ai/nano-banana/edit, OpenAI image models or the agent's own image tool): style template + subject + action, pure white background, 1:1, style pack and mascot as references.
  2. 02
    Cut out with fal-ai/birefnet/v2 ("General Use (Heavy)", refine_foreground), result PNG with alpha.
  3. 03
    Post-process, local and deterministic: remove the transparent border, centre on a square with 8 % air, Lanczos to 512×512, optimize the PNG; over 300 KB 448 or 384 px, last 256 colours.
  4. 04
    Visual check: dist/art-preview.html shows the contact sheet and the Gift Wall preview per preset (image, action, gift, coins) on dark and light. Regenerate bad images one by one with --only.
  5. 05
    Approval: the developer first sees two test images (one mercy, one sabotage). Only then are all the others generated in parallel.
Commands in the game repository
# Once: copy the prompt template and fill it for the game
cp animstream/art/action-prompts.example.json tools/art/action-prompts.json

# Look at the prompts without sending anything
node tools/art/generate-action-images.mjs --dry-run

# Two test images (mercy + sabotage) and the preview; then wait for the approval
node tools/art/generate-action-images.mjs --test 2

# After the approval: all others, in parallel
node tools/art/generate-action-images.mjs

# Contact sheet and Gift Wall preview, redo single images
node tools/art/generate-action-images.mjs --preview
node tools/art/generate-action-images.mjs --only spawn,heal

# Before packing: must exit 0
node tools/art/generate-action-images.mjs --check

Without an API

Agents with their own image tool (Codex, for example) paint the prompt in build/art-raw/<id>.prompt.txt into build/art-raw/<id>.paint.png and continue with --provider files; --cutout local cuts out from white offline. Raw images stay in build/art-raw/ and are never shipped.

Binding

Prompt template

art/action-prompts.example.json in the agent kit is the template. Every game copies it to tools/art/action-prompts.json and fills it: keep the AnimStream wording and replace only the sentence about the game world and colours; per action subject, action, kind (mercy or sabotage), optional mascot and text. The file also records every prompt.

Style template
Glossy 3D cartoon clipart icon of {SUBJECT}, {ACTION}, exactly like the rendering style of the reference clipart images: one clear centred motif with a bold readable silhouette, chunky rounded shapes, vibrant saturated colours, soft studio lighting with a bright rim light, subtle specular highlights, slight three-quarter view, readable as a 64 px tile. It belongs to the world of Zombie Prank, a cartoon zombie survival arena: use its colours, toxic lime green, purple night sky, bright orange, and its objects (cartoon zombies, the hero's baseball cap, crates, potions). Isolated on a plain pure white empty background, nothing else in the picture, no text, no letters, no numbers, no logo, no frame, no ground shadow, square 1:1.
tools/art/action-prompts.json · excerpt
{
  "style": "Glossy 3D cartoon clipart icon of {SUBJECT}, {ACTION}, exactly like the rendering style of the reference clipart images: … no text, no letters, no numbers, no logo, no frame, no ground shadow, square 1:1.",
  "kinds": {
    "mercy": "This action helps the streamer: friendly mood with green accents or a green check mark.",
    "sabotage": "This action pranks the streamer: mischievous mood with red or orange accents and a warning or prohibition sign."
  },
  "mascot": "Zed, a chubby friendly cartoon zombie with lime green skin, one droopy eye, a torn purple hoodie and a big goofy grin.",
  "mascotReference": "tools/art/mascot.png",
  "references": [
    "animstream/art/reference/*.png"
  ],
  "actions": {
    "spawn-zombies": {
      "subject": "three chubby cartoon zombies bursting out of a cracked purple ground portal",
      "action": "a crowd of zombies rushing towards the viewer",
      "kind": "sabotage",
      "mascot": true
    },
    "invert-controls": {
      "subject": "a chunky game controller with two curved arrows swapping left and right",
      "action": "the controls turning upside down with a dizzy swirl",
      "kind": "sabotage"
    }
  }
}

Security

API keys

The tool reads FAL_KEY or OPENAI_API_KEY, otherwise the OS secret store (service fal-ai or openai). Keys are never printed, logged, written to files or passed on a command line. You store the key once in your own terminal; each command asks for it, so it does not end up in the shell history.

Store the key yourself
# macOS Keychain (asks for the key)
security add-generic-password -a "$USER" -s fal-ai -w

# Linux libsecret (asks for the key)
secret-tool store --label="fal.ai API key" service fal-ai

# Windows Credential Manager (asks for the key)
cmdkey /generic:fal-ai /user:fal-ai /pass

# OpenAI: "openai" instead of "fal-ai"; or set FAL_KEY / OPENAI_API_KEY in your own terminal

Never in the chat

Never paste an API key into the chat with the agent. If the tool finds no key, the agent shows you these commands and waits.

Acceptance

Checks

CheckWhereResult
PNG/WebP, square, 256–1024 px, ≤ 300 KB, alphaanimstream-pack, release CLI, --checkerror
Placeholderanimstream-pack, release CLI, --checkmust be replaced
< 5 % transparent pixelsanimstream-pack, release CLI, --checkwarning (not cut out)
≥ 90 % of the visible pixels in one colouranimstream-pack, release CLI, --checkwarning
Almost nothing visibleanimstream-pack, release CLI, --checkwarning
Readable at 64 px, game reference, colours, textcontact sheet + Gift Wall previewvisual check before the approval

generate-action-images.mjs --check exits 0 only when none of these warnings and no placeholder is left. The skill animstream-release runs it before packing. Checklist: point 6 and point 13.

Same art direction

Store material

The same colour world and mascot in the game, the action images and the store material, generated with the same references.

ItemSizeRulesCheck
Cover1920×1080, de + enGame logo large, mascot or main motif, game scene in the background; lower left corner free for the "animstream ORIGINALS" badge.Readable as a 480×270 thumbnail.
Icon1024×1024Only the mascot or the main motif, no text.Recognisable at 32 px.
SplashPortrait, e.g. 1080×1920Calm lower area for the logo.Matches the cover.
Trailer16:9 and 9:16, each de + enReal gameplay driven by an autopilot, cut to the beat; actions with a gift card ("@name sends · gift · coins"); end card with icon, logo and "Now in the AnimStream Store".MP4 rules of the release CLI.
Postersame as the trailer, JPGThe strongest scene of the trailer.One per trailer and language.

ART-DIRECTION.mdART-DIRECTION.de.mdaction-prompts.example.json