Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.
docs: v2.5.3 attack showcase and weapon-respecting attack prompt notes
Soohong Kim3580caa3dee3
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b813e1e..67a9ca4 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -15,6 +15,8 @@ All notable public changes to `sprite-gen` are recorded here. Versions track the- Loop selection and seam failures write structured reports with the rejected candidate, search window and repeat/return evidence. Successful reports explicitly record `status: passed`; undefined ratios are represented as JSON `null`.- Attack canvases reserve overhead room as well as forward room for raised weapon swings. Wide padding now honors headroom while preserving 16:9 and the still pixels; idle, walk, run and jump defaults are unchanged.+- The attack motion prompt now tells the video model to strike with the weapon the character already holds and to keep its gear and outfit as drawn, so an armed sprite does not fall back to punching or grow new equipment mid-clip.+- Attack showcase: `docs/assets/attack-slime.gif`, `attack-fox-hood.gif`, `attack-paladin.gif` and `attack-claudecy-katana.gif` were produced by this release's pipeline (still, canvas, Grok Imagine clip, frames gate, loop selection) with no manual cut points. On a ten-character side-view sample every attack closed its loop; two clips needed the built-in single regeneration because the model framed the raised weapon above the top edge.## v2.5.2 - Cleaner video spill correctiondiff --git a/README.ko.md b/README.ko.mdindex 6a5d237..728a218 100644--- a/README.ko.md+++ b/README.ko.md@@ -28,6 +28,8 @@측면 스프라이트는 `video-set`의 `--facing right|left`를 캔버스 배치와 클립 프롬프트에 일관되게 사용한다. 방향 판정기는 **기본적으로 기록만 남기며**(`--facing-fix none`), 높은 신뢰도에서도 틀릴 수 있다. `gen --ref image.png --facing right`는 생성 문장으로 방향을 요구한다. `gen`의 방향 기본값은 보존이며, 문장만으로 결과를 보장할 수는 없다. 보정은 `--facing-fix mirror` 또는 `gen --facing-fix regen`을 명시해야 하므로 먼저 스틸을 확인한다. [방향 옵션](SKILL.md#side-view-facing).+<p align="center"><sub>v2.5.3 공격 루프 예시(수동 컷 없음): README 영문판의 네 GIF(카타나 클로디시, 슬라임, 두건 여우, 성기사)를 참고.</sub></p>+## 요청으로 시작하기**스프라이트**나 **이미지**를 요청하면 된다. 에이전트가 접근 권한을 확인하고, 빠진 프로바이더/모션 선택만 물어보고, 기존 파이프라인을 실행해 파일을 전달한다. 큐레이션 뷰는 선택 사항이다. 선택을 한 번 저장해 두면 스프라이트와 이미지 기본값을 따로 재사용할 수 있고, 일회성 요청은 그 값을 덮어쓰지 않는다. [사용자 워크플로와 기본값](docs/user-workflow.md).diff --git a/README.md b/README.mdindex 6ad9c73..7a13c70 100644--- a/README.md+++ b/README.md@@ -28,6 +28,14 @@ Ask an image model for a "sprite sheet" and you know what you get: a character wFor side sprites, `video-set` uses `--facing right|left` consistently across canvas placement and clip prompts. Its direction detector is **record-only by default** (`--facing-fix none`) and can be wrong even at high confidence. Use `gen --ref image.png --facing right` to request orientation in the generation prompt; `gen` otherwise preserves orientation. Prompts request direction but cannot guarantee the result. Correction is opt-in: `--facing-fix mirror`, or `gen --facing-fix regen`; review the still before using either. See [facing options](SKILL.md#side-view-facing).+<p align="center">+ <img src="docs/assets/attack-claudecy-katana.gif" height="160" alt="Katana slash loop">+ <img src="docs/assets/attack-slime.gif" height="160" alt="Slime attack loop">+ <img src="docs/assets/attack-fox-hood.gif" height="160" alt="Hooded fox attack loop">+ <img src="docs/assets/attack-paladin.gif" height="160" alt="Paladin attack loop">+</p>+<p align="center"><sub>v2.5.3 attack loops straight out of the video pipeline: one still each, Grok Imagine clip, frames gate, automatic loop selection. No manual cut points.</sub></p>+## Start with a requestAsk for **sprites** or **an image**. The agent checks access, asks only for missing provider/motion choices, runs the existing pipeline, and delivers the files. The curation view is optional. Save your choices once to reuse separate sprite and image defaults; a one-off request does not overwrite them. [User workflow and defaults](docs/user-workflow.md).diff --git a/docs/assets/attack-fox-hood.gif b/docs/assets/attack-fox-hood.gifnew file mode 100644index 0000000..de9d316Binary files /dev/null and b/docs/assets/attack-fox-hood.gif differdiff --git a/docs/assets/attack-paladin.gif b/docs/assets/attack-paladin.gifnew file mode 100644index 0000000..d18992eBinary files /dev/null and b/docs/assets/attack-paladin.gif differdiff --git a/docs/assets/attack-slime.gif b/docs/assets/attack-slime.gifnew file mode 100644index 0000000..e5cbca2Binary files /dev/null and b/docs/assets/attack-slime.gif differ