Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.
video-set: motion templates no longer assume a biped
Soohong Kim617306882a0a
diff --git a/sprite_gen/video/batch.py b/sprite_gen/video/batch.pyindex d304051..b24c087 100644--- a/sprite_gen/video/batch.py+++ b/sprite_gen/video/batch.py@@ -36,8 +36,8 @@ VIEW_TEXT = {}MOTION_TEXT = {"idle": "stands in place in a relaxed idle: slow gentle breathing, a subtle weight sway, one natural eye blink. Feet never move.",- "walk": "walks in place on a treadmill: a steady, natural bipedal walk cycle, legs alternating with clear foot contacts, arms swinging gently.",- "run": "runs in place on a treadmill: a fast, energetic bipedal run cycle, knees lifting high, arms pumping, clear alternating strides.",+ "walk": "walks in place on a treadmill: a steady, natural walk cycle for this body type, limbs alternating with clear ground contacts, the rest of the body following naturally.",+ "run": "runs in place on a treadmill: a fast, energetic run cycle for this body type, clear alternating strides with a bounding rhythm.","jump": "performs a modest vertical hop in place over and over: crouch, spring up about half the body height, land softly, return to the exact starting stance, repeat at an even rhythm. Same height every time.","attack": "performs the same melee attack over and over: one clean strike in front, then returns to the exact ready stance, repeating at an even rhythm.",}diff --git a/tests/video/test_video_pipeline.py b/tests/video/test_video_pipeline.pyindex 05b46de..96d3399 100644--- a/tests/video/test_video_pipeline.py+++ b/tests/video/test_video_pipeline.py@@ -233,6 +233,14 @@ def test_prompt_uses_state_and_view_and_optional_character() -> None:assert "The character" in batch_mod.build_prompt("back", "jump", None)+def test_motion_templates_do_not_assume_a_body_plan() -> None:+ # the templates were first written for a biped; a quadruped or a legless blob must not+ # be prompted into a contradiction (2026-09-09 generalization run)+ for state, text in batch_mod.MOTION_TEXT.items():+ for word in ("bipedal", "knees", "arms pumping", "arms swinging"):+ assert word not in text, (state, word)++def test_run_set_staggers_retries_429_and_tables_failures(tmp_path: Path, monkeypatch) -> None:base = _still(tmp_path)calls: list[tuple[str, float]] = []