# Stylization — the style contract for AI-generated game assets Self-contained specification of the stylization layer for game pipelines. Owns everything that makes independently generated assets look like ONE game. Designed to be dropped into any game-generation skill: if your pipeline generates a single pixel of game art, it consumes this contract. **Interface in one paragraph:** the pipeline derives ONE text string (the STYLE FORMULA) per game, gets it user-approved once, then inserts it byte-identical into every asset-generation prompt of every subsystem (sprites, animations, tiles, backgrounds, textures, 3D). This file defines how the formula is built, how prompts are assembled around it, which models to call with what parameters, and how style consistency is verified. --- ## 1. Why stylization exists Every asset is produced by an independent model call — the model has no memory of previous calls. Different subsystems (and different team members' skills) generate different asset kinds. Without a shared rule the result is "three different games on one screen": photoreal floor + pixel-art hero + cartoon background. The STYLE FORMULA is the glue: the only piece of shared context that travels into every generation. ## 2. STYLE FORMULA recipe One English paragraph, **60–90 words**, composed once per game right after the design brief is parsed, shown to the user for approval, stored in the pipeline's state (e.g. `gdd.json.style_formula`). Concatenate five blocks, in order: | # | Block | Pins down | Example | |---|---|---|---| | 1 | Rendering style | what it's "drawn with" | `flat vector cartoon with soft gradients` / `chunky pixel art, 32x32 grid feel` / `soft hand-painted gouache` | | 2 | Shape & line language | silhouettes and outlines | `rounded blobby shapes with thick dark-plum outlines` | | 3 | Palette **by role** | readability, not uniformity | `environment in deep violet stone with charcoal shadows, hero in warm coral-cream tones contrasting the surroundings, hazards and pickups marked with acid-green glow` | | 4 | Light & mood | one clause | `moody but playful underground atmosphere, flat ambient light` | | 5 | Game-readability | contrast + **perspective word** | `high contrast between game elements and backgrounds, clean readable silhouettes, consistent side-view perspective across all assets` | Rules: - **Block 3 is roles, not one global gamma.** Environment gets its base colors; the hero gets colors that CONTRAST with that base (the hero must pop, never blend); hazards/pickups get one distinct signal hue. A single flat color list paints the whole world one gamma and kills element readability — style identity lives in blocks 1, 2 and 4, color serves readability. - **The perspective word in block 5 must match the genre**: platformer / runner → `side-view`; top-down → `top-down`; puzzle / clicker → `flat frontal`. A top-down game with a side-view hero sprite is the most common cross-asset failure; the formula is where it is prevented. (3D pipelines: see section 8 — the perspective word is replaced, not reused.) - If the user supplied a style reference image, describe ITS rendering style in your own precise words in block 1 — never paste image URLs into the formula. - Do NOT put into the formula: asset-specific content (that's the per-asset description), background/keying instructions (that's the kind suffix), pixel dimensions or resolutions. ### STYLE TOKEN (compressed form) Some downstream fields are length-limited (e.g. Meshy `texture_prompt` ≤600 chars — the full formula usually fits; some UI fields may not). When a consumer cannot take the full formula, it takes the **STYLE TOKEN**: blocks 1 + 3-condensed + one accent from block 4, ≤120 chars, derived ONCE from the approved formula and then also frozen byte-identical. Example: `flat vector cartoon, deep violet dungeon palette, glowing teal accents, warm amber torchlight, thick dark-plum outlines`. The formula is the source of truth; the token is its compression — never maintain two competing style strings. ## 3. The byte-identical contract > The formula is inserted into EVERY generation prompt of EVERY subsystem > **without changing a single byte**. No paraphrasing, no shortening, no > "improving". Including single-asset regenerations during iteration. > Re-deriving the formula mid-game is allowed only when the user explicitly > asks to change the art style — that re-opens the approval gate and > invalidates all existing assets. Consumers and their obligations: | Consumer | Obligation | |---|---| | Static asset generation (sprites, tiles, backgrounds, UI) | formula verbatim in every prompt (assembly in section 4) | | Character animation (sprite-sheet generation from a base sprite) | formula verbatim in sheet prompts; the animation view parameter MUST match the formula's perspective word (`side-view` → sidescroller view, `top-down` → top-down view) | | Environment textures | formula verbatim + seamless suffix (section 4) | | 3D (image-to-3D, e.g. Meshy/Tripo) | formula verbatim in concept/reference image prompts; formula (or token if limited) in `texture_prompt`; style fixes via retexture, not mesh regeneration (section 8) | | Level/map presentation sheets | formula or token in the sheet prompt so map icons match the asset kit | ## 4. Prompt assembly for 2D assets Every asset prompt is a concatenation of exactly four parts, in order: ``` + +