toon2d-runtime-animation
/toon2d-runtime-animation
Build and verify runtime-animated 2D game characters (cutout/skeletal, low-res pixel with runtime rotation, mesh-deform, lifelike AI-art busts) that react to gameplay instead of playing fixed frames - FK + 2-bone IK feet that never skate, spring secondary motion, state machine with crossfades, a parameter face (blink, look-at, lip-flap, expressions), anti-puppet layers - plus scripts that lint, validate, headlessly capture GIFs and score foot slip, joint gaps, idle liveliness and expressions. Use when making a 2D character playable/animated from a pose sheet or AI art, choosing between rigging
- Author
- gobha-me ↗
- Repository
- toon2d ↗
- Licence
- Apache-2.0
- Last repository change
- 10.11.2026
Assessment and security
- Files in this package
- 100
- Scripts
- 45
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- 45 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: evals/fixtures/make_vex_sheet.py, evals/run-evals.mjs, scripts/capture.mjs, scripts/doctor.mjs, scripts/lib/cdp.mjs, scripts/lib/drive.mjs, scripts/lib/gif.mjs, scripts/lib/img.mjs
What it does and when to use it
Build and verify runtime-animated 2D game characters (cutout/skeletal, low-res pixel with runtime rotation, mesh-deform, lifelike AI-art busts) that react to gameplay instead of playing fixed frames - FK + 2-bone IK feet that never skate, spring secondary motion, state machine with crossfades, a parameter face (blink, look-at, lip-flap, expressions), anti-puppet layers - plus scripts that lint, validate, headlessly capture GIFs and score foot slip, joint gaps, idle liveliness and expressions. Use when making a 2D character playable/animated from a pose sheet or AI art, choosing between rigging
Original author description
Build and verify runtime-animated 2D game characters (cutout/skeletal, low-res pixel with runtime rotation, mesh-deform, lifelike AI-art busts) that react to gameplay instead of playing fixed frames - FK + 2-bone IK feet that never skate, spring secondary motion, state machine with crossfades, a parameter face (blink, look-at, lip-flap, expressions), anti-puppet layers - plus scripts that lint, validate, headlessly capture GIFs and score foot slip, joint gaps, idle liveliness and expressions. Use when making a 2D character playable/animated from a pose sheet or AI art, choosing between rigging
How it works
- Workflow (do these in order)
- Pipeline chooser
- Non-negotiables (each one was a measured failure)
- Bundle map
SKILL.md preview
---
name: toon2d-runtime-animation
version: 0.1.0
description: Build and verify runtime-animated 2D game characters (cutout/skeletal, low-res pixel with runtime rotation, mesh-deform, lifelike AI-art busts) that react to gameplay instead of playing fixed frames - FK + 2-bone IK feet that never skate, spring secondary motion, state machine with crossfades, a parameter face (blink, look-at, lip-flap, expressions), anti-puppet layers - plus scripts that lint, validate, headlessly capture GIFs and score foot slip, joint gaps, idle liveliness and expressions. Use when making a 2D character playable/animated from a pose sheet or AI art, choosing between rigging, frame-by-frame and pre-rendered 3D, fixing a character that looks puppety, skates, gaps, pops or blurs, or reviewing 2D character animation critically. Engine-agnostic (vanilla JS reference, Godot notes).
---
# toon2d runtime animation
Goal: a character that **reacts** (to speed, landings, hits, where it looks, what it feels) and still reads as
*drawn*, not as a paper puppet. The bar is SoR4 / Hades / Children of Morta / Rogue Legacy / Axiom Verge, and
it must beat 90s fixed-frame fighters on reactivity. Everything here was learned by building it and
measuring it; the scripts prove a result instead of trusting a screenshot.
## Workflow (do these in order)
0. **Check the environment once**: `node <skill>/scripts/doctor.mjs` (Node ≥ 22, finds a Chromium-based
browser, smoke-launches it). Fix what it reports before building.
1. **Pick the pipeline** (table below; detail in [reference/pipelines.md](reference/pipelines.md)).
2. **Copy the starter**: `cp -r <skill>/templates/starter <project>`. It already passes every check; keep
it passing while you change it. Read [reference/runtime-core.md](reference/runtime-core.md) before editing the engine.
3. **Bring in the art** with the recipe for your pipeline (sheet → `parts.json` via `scripts/sheet-markers.mjs`,
bone lengths from the markers, palette merged, face anchor placed).
4. **Gate continuously**: `node <skill>/scripts/lint.mjs <project>` then
`node <skill>/scripts/score.mjs <project> --out <project>/shots` (all checks must PASS).
After any jump/pose change also run `node <skill>/scripts/takeoff.mjs <project>` (take-off lean and crouch depth;
advisory, not part of the score).
5. **Capture and look**: `node <skill>/scripts/capture.mjs <project> --out <project>/shots`, then open the GIFs and
`sheet-*.png` and score them with [reference/review-rubric.md](reference/review-rubric.md). Numbers passing ≠ good;
the rubric catches what metrics can't (appeal, readability).
6. Fix the lowest rubric axis first using [reference/pitfalls.md](reference/pitfalls.md), re-run 4-5, record before/after.
For the eight-axis art review, use the [bounded visual review workflow](reference/self-review.md).
`scripts/self-review.mjs` captures native key poses, a 3x view and a motion strip,
records pixel-specific observations, and stops after a pass or three rounds.
Author scores remain provisional; they do not enter the separate grader.
`<skill>` = the directory containing this file. All scripts are zero-dependency Node ≥ 22 ES modules; capture/score
need a Chrome/Chromium binary (auto-found, or set `CHROME_PATH`).
## Pipeline chooser
| Source / need | Pipeline | Recipe |
|---|---|---|
| Side-view parts or pose sheet, toon/flat art, gameplay moveset | Cutout skeletal + IK | [recipe-cutout-skeletal.md](reference/recipe-cutout-skeletal.md) |
| Pixel art, want rotation without hand-drawing every angle | Low-res buffer + runtime rotation + integer upscale | [recipe-pixel-lowres.md](reference/recipe-pixel-lowres.md) |
| Painterly / lifelike AI art, idle-heavy or small moveset | Mesh deform (skinned) | [recipe-mesh-deform-lifelike.md](reference/recipe-mesh-deform-lifelike.md) |
| Lifelike face: dialogue bust, HUD live portrait, comms window, crew panel, interrogation close-up | F2: AI expression set + optical-flow morph, procedural blink/breath, eyes-only gaze wander (F4 talking hybrid tried, mostly rejected) | [recipe-lifelike-face-flow.md](reference/recipe-lifelike-face-flow.md) |
| Big readable moves, art budget, or full lifelike moveset | Frame-by-frame or pre-rendered 3D | [recipe-frame-by-frame-or-3d.md](reference/recipe-frame-by-frame-or-3d.md) |
Hybrids are normal: rigged body + hand-drawn smear frames on attacks; frame-by-frame body + parameter face.
## Non-negotiables (each one was a measured failure)
- **Deterministic sim**: fixed 60 Hz tick, seeded RNG, no wall clock in logic. Required for the eval harness.
- **Feet**: run phase advances by *distance* with cycle = 2 × stride; world-space foot locks; IK must be able to
reach (standing hip ≈ 0.92 × leg length). Score: `feet.slip` mean < 0.35 px/tick.
- **Pixel mode**: draw into a small buffer (320×180), quantize to the palette with an alpha cut, draw the pixel
face *after* quantizing, upscale by an integer factor with nearest-neighbour. Never let the browser/GPU filter it.
- **Joints**: round caps / overlap discs at every joint; cut parts along the silhouette, never a box.
- **Take-off lean**: torso pitch (spine bone vs vertical, + = toward facing) 5–30° forward at the deepest crouch,
never past 30° forward or 15° back on the first 8 airborne ticks, and back to ≤ 15° by the 8th. Hip drops ≥ 15 % of
standing hip height. A 40–45° lean on launch reads as a dive, not a jump. Check: `scripts/takeoff.mjs`.
- **Timing**: hold the upper body on 2s for runs (3s reads choppy); feet and IK always run every tick.
- **Faces**: expression changes are *takes* (anticipate → overshoot → settle), never plain crossfades. The starter's
reactions already support it: `{ expr, weight, fadeIn, hold, fadeOut, overshoot, settle, anticipate: { expr, weight, hold } }`
in `expressions.json` (don't re-implement it in `face-core.js`).
- **Never use AI-generated frame flipbooks for gameplay locomotion** (scale drift, near/far legs swap = "4 legs").
- **One agent never grades its own work**: run the evals/review with a different agent or a human. Unattended
with no second agent? Spawn a fresh sub-agent reviewer (Claude Code: Task/sub-agent; Codex: a new session) that
sees only the captures + `reference/review-rubric.md`, record its scores, and label your own as provisional.
## Bundle map
- `templates/starter/`: runnable reference (index.html, main.js, rig.json, expressions.json, engine/*.js).
- `scripts/`: `doctor.mjs`, `lint.mjs`, `validate-rig.mjs`, `validate-expressions.mjs`, `sheet-markers.mjs`, `capture.mjs`,
`score.mjs`, `takeoff.mjs`, `serve.mjs` (`lib/` = CDP driver, PNG/GIF codecs, image metrics).
- `reference/`: [harness-contract.md](reference/harness-contract.md) (the `window.__toon` API the scripts drive),
[runtime-core.md](reference/runtime-core.md), recipes, [pitfalls.md](reference/pitfalls.md),
[review-rubric.md](reference/review-rubric.md), [godot-notes.md](reference/godot-notes.md),
[deploy-notes.md](reference/deploy-notes.md), [our-style.md](reference/our-style.md),
[findings-inbox.md](reference/findings-inbox.md).
- `subskills/toon2d-expression-rig/` (face params, presets, director, engine notes, layer cutting from AI sheets) and
`subskills/toon2d-anti-puppet/` (the full anti-puppet catalogue and style variants). Read them when working on the
face or on puppet tells; the starter already embeds their core.
- `evals/`: golden tasks + `run-evals.mjs` that grade a project objectively. See `evals/README.md`.
Files in this package (100)
- CHANGELOG.md 9 KB
- README.md 3 KB
- SKILL.md 7 KB
- evals/LICENSE.txt 1 KB
- evals/README.md 2 KB
- evals/review.md 1 KB
- evals/run-evals.mjs 11 KB
- evals/fixtures/make_vex_sheet.py 4 KB
- evals/fixtures/vex/preview.png 2 KB
- evals/fixtures/vex/sheet.json 1 KB
- evals/fixtures/vex/sheet.png 1 KB
- evals/tasks/G1-pixel-cutout-from-sheet.md 1 KB
- evals/tasks/G2-smooth-coat-and-reactions.md 1 KB
- evals/tasks/G3-lifelike-pipeline-plan.md 1 KB
- reference/deploy-notes.md 1 KB
- reference/findings-inbox.md 3 KB
- reference/godot-notes.md 2 KB
- reference/harness-contract.md 3 KB
- reference/our-style.md 1 KB
- reference/pipelines.md 4 KB
- reference/pitfalls.md 10 KB
- reference/recipe-cutout-skeletal.md 5 KB
- reference/recipe-frame-by-frame-or-3d.md 2 KB
- reference/recipe-lifelike-face-flow.md 6 KB
- reference/recipe-mesh-deform-lifelike.md 2 KB
- reference/recipe-pixel-lowres.md 3 KB
- reference/review-rubric.md 3 KB
- reference/runtime-core.md 5 KB
- reference/self-review.md 3 KB
- reference/taste-calibration.md 3 KB
- reference/taste-rubric.md 5 KB
- reference/taste-examples/README.md 4 KB
- reference/taste-examples/appeal-adverse.svg 7 KB
- reference/taste-examples/appeal-clear.svg 7 KB
- reference/taste-examples/game-scale-adverse.svg 11 KB
- reference/taste-examples/game-scale-clear.svg 7 KB
- reference/taste-examples/line-weight-adverse.svg 8 KB
- reference/taste-examples/line-weight-clear.svg 7 KB
- reference/taste-examples/on-model-adverse.svg 7 KB
- reference/taste-examples/on-model-clear.svg 7 KB
- reference/taste-examples/palette-adverse.svg 7 KB
- reference/taste-examples/palette-clear.svg 7 KB
- reference/taste-examples/proportions-adverse.svg 7 KB
- reference/taste-examples/proportions-clear.svg 7 KB
- reference/taste-examples/shading-adverse.svg 7 KB
- reference/taste-examples/shading-clear.svg 7 KB
- reference/taste-examples/silhouette-adverse.svg 7 KB
- reference/taste-examples/silhouette-clear.svg 7 KB
- scripts/capture.mjs 4 KB
- scripts/doctor.mjs 1 KB
- scripts/lint.mjs 4 KB
- scripts/score.mjs 15 KB
- scripts/self-review.mjs 7 KB
- scripts/serve.mjs 1 KB
- scripts/sheet-markers.mjs 5 KB
- scripts/takeoff.mjs 6 KB
- scripts/taste-agreement.mjs 4 KB
- scripts/taste-examples.mjs 6 KB
- scripts/validate-expressions.mjs 3 KB
- scripts/validate-rig.mjs 6 KB
- scripts/lib/cdp.mjs 6 KB
- scripts/lib/drive.mjs 4 KB
- scripts/lib/gif.mjs 3 KB
- scripts/lib/img.mjs 4 KB
- scripts/lib/png.mjs 4 KB
- scripts/lib/serve.mjs 1 KB
- subskills/toon2d-anti-puppet/SKILL.md 7 KB
- subskills/toon2d-anti-puppet/reference/limbmesh.js 10 KB
- subskills/toon2d-anti-puppet/reference/motion.js 10 KB
- subskills/toon2d-anti-puppet/reference/paint.js 6 KB
- subskills/toon2d-anti-puppet/reference/palette.js 3 KB
- subskills/toon2d-anti-puppet/reference/pixelface.js 5 KB
- subskills/toon2d-expression-rig/SKILL.md 11 KB
- subskills/toon2d-expression-rig/reference/engine-notes.md 2 KB
- subskills/toon2d-expression-rig/reference/expressions.json 5 KB
- subskills/toon2d-expression-rig/reference/face-core.js 17 KB
- subskills/toon2d-expression-rig/reference/face-render-canvas.js 11 KB
- subskills/toon2d-expression-rig/reference/layer-cutting.md 3 KB
- subskills/toon2d-expression-rig/scripts/validate_expressions.mjs 2 KB
- templates/starter/expressions.json 5 KB
- templates/starter/index.html 1 KB
- templates/starter/main.js 5 KB
- templates/starter/package.json 1 KB
- templates/starter/rig.json 2 KB
- templates/starter/engine/antipuppet.js 3 KB
- templates/starter/engine/character.js 11 KB
- templates/starter/engine/face-clamp.js 1 KB
- templates/starter/engine/face-core.js 17 KB
- templates/starter/engine/face-pixel.js 4 KB
- templates/starter/engine/face-vector.js 4 KB
- templates/starter/engine/footlock.js 2 KB
- templates/starter/engine/harness.js 3 KB
- templates/starter/engine/ik.js 1 KB
- templates/starter/engine/mathx.js 2 KB
- templates/starter/engine/physics.js 4 KB
- templates/starter/engine/poses.js 6 KB
- templates/starter/engine/render.js 12 KB
- templates/starter/engine/skeleton.js 2 KB
- templates/starter/engine/springs.js 2 KB
- templates/starter/engine/statemachine.js 2 KB
Versions
The database has no other skills named toon2d-runtime-animation.
Database snapshot: 13.11.2026 · package version b51df9643e20 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100toon2d-expression-rig
Build a parameter-driven, layered 2D toon/anime face (eyes, lids, pupils, brows, mouth, blush, sweat/anger/tear marks) whose expressions are presets blended by weighted mix, smoothed per parameter, and layered with automatic blinking, look-at, and viseme lip-flap, then driven by… - 100layer-pixel-art
Use when making pixel art with Layer: sprites, retro game characters, pixel icons, pixel tiles, or a sprite sheet and walk cycle. Also when generated pixel art comes back blurry, anti-aliased, or at the wrong grid size, and when packing separate frames into a sheet or cutting an… - 100scenario-sprite-animation
Use when animating 2D game art with Scenario: walk, idle or attack cycles in 4 or 8 directions, isometric sprite sheets, animated GIFs, frame-by-frame pixel art animation, VFX loops such as fire or smoke, looping a sprite seamlessly, animating an existing character image, a full… - 100layer-game-assets
Use when producing in-game art with Layer: characters, heroes, NPCs, enemies and mascots, environment and background concept art, parallax layers, or game UI such as icons, buttons, frames, panels, HUD elements and currency symbols. Also when a cast must stay on-model across… - 90toon2d-anti-puppet
Make a 2D cutout/skeletal character stop reading as a paper puppet by fixing hinge joints, rigid parts, constant line weight, mirrored and synchronous motion, still idles, instant turns and a flat 3/4 face, then verify the change with deterministic before/after captures and a… - 95ai-game-art-pipeline
Provider-neutral open-source skill for planning and producing game-runtime art assets and animation: static props/icons, canonical character sheets, combat sprites, 3D/video motion references, Veo/Seedance-style video-to-frames, cinematic ultimates, backgrounds, FX, SFX, runtime…