Skip to content
Tutorials menu
Tutorialsreview-export

Review and export

This page covers the second half of every recipe: lining frames up, checking them, approving them, and getting them into the game.

Normalise#

Normalise <hero>.

normalise_frames turns raw/ (frames as drawn) into frames/ (game-ready):

  1. Frames are scaled down by workingScale, if it's above 1.
  2. Every frame is placed on the asset's fixed canvas, with the body centred on the pivot and the feet on the baseline.
  3. Mirrored directions are flipped about the pivot.
  4. The palette is applied if enforce is quantise, then effects and variants are applied.

It returns a drift report and a contact sheet: blue cross = pivot, red line = baseline.

  • align: "set" (default) shifts each animation/direction as a whole. It keeps the bob and sway the provider drew, which is right for walk cycles.
  • align: "frame" centres every frame on its own, for unrelated frames such as a set of poses.
  • Flags: frames sinking below the baseline (beyond tolerance), clipped content, or empty frames.

Run it again after anything that changes frames or geometry: regenerating, editing, a new pivot or canvas, or new effects. It's free.

QA#

Run QA on <hero>.

qa_report runs every check and returns pass, warn or fail:

Check Fix
Missing, empty or wrong-sized frames; directions with different frame counts Regenerate or re-import that direction
Content touching the canvas edge Bigger canvas (asset_update), or a smaller characterFill / scale
Detached specks clean_strays
A frame that fills its whole box: a background that was never removed remove_background, or regenerate
Soft alpha in pixel art quantise_palette, or set enforce: quantise
Off-palette colours quantise_palette
A flipped direction that doesn't look like a mirror image asset_set_mirror → generate
Walk problems: feet off the ground on contact frames, a jump at the loop seam, size wobble Tick the contact frames in review; regenerate the animation
Tile seams Regenerate the tileset with a new seed, or edit the tile
Skeleton animations: a frame whose limbs aren't where the skeleton put them Redraw that direction with a new seed
Characters: a direction drawn with a smaller head than its stand (below 0.88× its width; back views 0.83×). Ludo's transfer motion pulls figures towards long legs and a small head Redraw that direction (directions: ['w']), or use qa: { retries: 1 } when animating
A motion holding the hands forward (a carry) drawn with nothing at the hands in a side view Redraw with a prompt saying where the arms are, or from a still in the pose

qa_walk_cycle runs only the walk checks, for one animation, with each direction's head width and height against its stand. The first run records the foot-contact frames it detects.

Only what changed: after redrawing one direction, normalise_frames { directions: ['w'] } normalises just it (and its flip). Animating, normalising and QA tools return a contact sheet of only the directions they touched; sheet: 'all' or 'none' changes that.

Claude reviews the contact sheets itself, and tells you about warnings before going on. Ask to see them: "show me the contact sheet for walk" (contact_sheet) or "make me a GIF of the walk facing sw" (preview_gif).

Your review in the web app#

Ask me to review <hero>, focusing on <the walk's feet>.

human_review opens the asset page in the built-in browser, and Claude waits for you. On the page you can:

  • play each animation and direction, scrub through frames and use onion skin;
  • zoom and pan around the frame: the mouse wheel zooms around the cursor, the Zoom tool (Z) zooms in on a click (Alt- or Shift-click zooms out), and the Pan tool (H) drags the view (hold Space to pan with any tool). The slider, the % box (relative to the asset canvas) and Fit set the zoom directly;
  • click a candidate at the bottom of the page to view it in the preview (Back to frames or Esc returns);
  • tick the contact frames (feet planted), which improves normalising and QA;
  • click with the Place tool (V) to place the pivot, baseline and attachment points;
  • change fps and mode;
  • Approve, Request changes (with a note) or Reject.

Changing geometry re-normalises the frames. If the conversation stopped waiting before you answered, Request changes queues your notes as a task instead (see the task queue). Otherwise your notes go back to Claude, which acts on them ("make the shield bigger" → an edit or regeneration). Approved assets get status: "approved", which export_project { onlyApproved: true } filters by.

The web app#

Each game's web app runs at a fixed local address, e.g. http://127.0.0.1:4903. "Show me Atelier's web app" (web_app) gives you the link. Open the app from that link the first time in each browser: it carries the token that lets the browser in (SETUP). After that the plain address works.

The header has the sections; page 15 covers them, the stages and the recipe buttons.

Page For
Home What needs you, the next steps (each with its recipe button), recent work, today's spend
Direction The style guide, the cameras per kind of asset, the reference library
Production Every asset on a board by stage, with its next step
Studios The Model page, Motions and Joints
Work Waiting for you (requests, tasks to review, Claude's questions, including in other games); the Queue (order tasks, price a batch, copy the prompt for a run); recipe runs
Task Write and edit a task, read Claude's thread, preview what Claude will see; review the result before and after (slider, onion, side by side) with QA, then accept, reopen (with a note or marks) or reject, which puts the frames back
Asset Playback and the review tools above, at any time, not only when asked, with tabs below: Overview, Directions, Animations, Model and rig, Finishing, Export, History. New task starts a task for what you're looking at. Pin, Box, Arrow, Mask, Paint mark up frames for a task. Edit joints opens the skeleton editor and the motion keyframes. Fix this beside a QA issue queues a task for it
New asset Describe an asset: the record is made at once and its drawing queued as a task, or drawn with a recipe
Ship Each asset's export state, Export per asset or everything at once, and the export preview
Settings Budgets (the daily cap recipes need), notifications, spend, provider balances, jobs, the cost ledger, and History
Gallery Picking from variations (human_pick)
Mask painter Painting the area an edit may change (human_mask)
Point it out / Look Marking what Claude asked about (human_annotate), or seeing Claude's marks (annotate_frames)
Style guide (on Direction) The palette and references; editing the prompt prefix, negatives and notes. Click a reference to open it full size, with the same zoom and pan as the asset viewer (Esc closes it)
History (on Settings) Every generation and operation, by asset or kind, with the ids asset_revert takes
Export preview (on Ship) The last export played through content-manager, texture-atlas and sprite, as the game will play it (Export preview on an exported asset's page)
Widget preview /widgets: any of Atelier's widgets as Claude Desktop would show it (page 14)

With no Claude session running, atelier web in the game folder serves it on its own.

Export#

Export <hero>. Then open the preview.

In Claude Desktop's chat the export plays right in the conversation; elsewhere, open the HTML preview below or the web app's Export preview page.

export_asset writes art/exports/<id>/:

File What it is
<id>.png The sheet: one cell per frame, one row per animation × direction
<id>.content.json Content-manager items: <id>-sheet (image), <id>-atlas (texture-atlas), <id>-sprite (sprite), plus <id>-collision if it has a collision shape. Tilesets have <id>-tilemap and <id>-autotile instead of the sprite.
<id>.preview.html Open it from disk: every animation playing through the real @basementuniverse packages
<id>-normals.png With normal_map: normals in the same cells as the sheet, plus <id>-normals-sheet and <id>-normals-atlas content items (before the sprite, whose frames name them as their normals layer)
<id>-cutout.png With export_cutout: the character's parts, plus <id>-cutout-sheet, <id>-cutout-atlas and <id>-cutout content items. art/exports/cutout-runtime.js plays them.

export_project exports every asset with normalised frames and writes art/exports/content.json, every item in one list. Add onlyApproved: true to include only approved assets.

Stale exports: after an asset changes, project_status, Home and the Ship page mark it "changed since export". Export it again (Export on Ship, or on the asset's Export tab).

Load it in the game#

import ContentManager from '@basementuniverse/content-manager';
import { textureAtlasContentProcessor } from '@basementuniverse/texture-atlas';
import { Sprite, spriteOptionsContentProcessor } from '@basementuniverse/sprite';

ContentManager.initialise({
  processors: { textureAtlas: textureAtlasContentProcessor, sprite: spriteOptionsContentProcessor },
});
await ContentManager.load(content); // art/exports/content.json, or one asset's .content.json

const hero = new Sprite(ContentManager.get('hero-sprite'));
hero.position = { x: 100, y: 200 }; // where the feet are
hero.animation = 'walk';
hero.direction = 'sw';
// each frame: hero.update(dt); hero.draw(ctx);
  • The origin is the pivot, so position is where the character stands.
  • Mirrored directions are real cells in the sheet, because sprite has no flip option.
  • Variants are ordinary animations: hero.animation = 'walk-hit'.
  • Frame names (for drawing straight from the atlas) are <id>-atlas_<animation>_<direction>-<n>, e.g. hero-atlas_walk_s-3. Single-frame poses drop the number: hero-atlas_stand_s.

If the game serves images from elsewhere, or registers the processors under other names, change export.imageUrlPrefix / export.processors in art/atelier.json ("set Atelier's export image prefix to /assets/art/") and re-export.

Versioning#

Commit art/ with the game. The bulky provider downloads in art/assets/*/sources/ and the database are already gitignored. asset_history shows every generation and operation on an asset, with prompts, costs and notes, which is useful for recreating a look.

Next: Jobs, costs and fixing things.

Found a mistake? Edit this page on GitHub.