Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
PluginAn toànẢnh, video & âm thanhDễ cho người mới

agent-sprite-forge

0x0funky · 0x0funky/agent-sprite-forge

Skill agent này tạo ra các bảng sprite 2D, bản đồ phân lớp và các nguyên mẫu game sẵn sàng sử dụng bằng cách dùng các prompt ngôn ngữ tự nhiên, hỗ trợ quy trình làm việc cho Godot, Unity và 2D thô.

Agent Skill để tạo bảng sprite và bản đồ 2D, khung hình PNG trong suốt và ảnh GIF động từ các lời nhắc.

4.3k sao416Giấy phép: MITCập nhật 12 ngày trước0 lượt mở

Xem kết quả thực tế

So sánh giữa các khung hình tấn công thủ công và tự động căn chỉnh

Ảnh từ README của tác giảSo sánh giữa các khung hình tấn công thủ công và tự động căn chỉnh

1/3

Ảnh từ README của tác giả 0x0funky ·Nguồn

Bạn có thể làm gì với nó

  • Tạo các sprite nhân vật 2D tùy chỉnh cho một game phong cách retro dựa trên mô tả văn bản.
  • Nhanh chóng tạo nguyên mẫu các màn chơi bằng cách tạo bản đồ phân lớp với dữ liệu va chạm.
  • Tạo ảnh GIF động cho các hoạt ảnh đứng yên, đi bộ và tấn công của nhân vật cho dự án game của bạn.

Kiểm tra an toàn

An toàn

Không thấy dấu hiệu rủi ro trong các file đã quét.

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

Agent Sprite Forge

Languages: English | 繁體中文 | 简体中文 | 日本語 | 한국어

0.4 launch teaser: every frame is real ASF output.

One still → a whole game-ready sprite set

Approve one generated still. Get every action of the character, keyed, looped, timed and exported for your engine.

Agent skills for Claude Code (plugin), Codex and Grok. The agent generates a master still with the best image route you have, makes one image-to-video clip per action from it, and deterministic Python tools gate, key, register, loop, retime, finish and package every action for Godot, Aseprite or a web game.

  <strong>1. One approved master still</strong>
  
  Generated by the local Codex CLI (<code>image_gen</code>), take 1 of 3.


  
  
  <strong>2. Six actions, one image-to-video clip each</strong>
  
  Grok image-to-video (local CLI), soft-matte keyed, registered, loops picked by measurement, one-shots retimed to game speed, HD finish with the colour lock. Real timing.

3. In a scene: the packaged run, attack and idle over a generated background. The run speed is measured from the contact foot, so the feet do not slide. Every frame comes from the 2026-10-06 live run; nothing is mocked up.

What's new · Quickstart · Routes and providers · Pipeline · Maps · Showcase · Tools

What's new in 0.4 — the big upgrade

Before 0.4, character animation meant cutting frames out of an image-generated sheet, or keying a single clip by hand. 0.4 turns one approved still into the whole set: one image-to-video clip per action, and a measured pipeline from every clip to the engine. Before and after, measured on real outputs:

  <strong>Pixel finish: the 48x64 fox run</strong>
  
  Old: one image-gen sheet cut 1/8 (594–709 colours per frame, soft alpha). New: master still → Grok clip → pixel finish (16–19 colours, binary alpha, selective outline). 4x nearest, both at 80 ms.


  
  
  <strong>Soft-matte keyer: no purple fringe</strong>
  
  Same Grok clip, same frame, 2x crop. Fringe 0.704 → 0, leaked key pixels 7,780 → 0, keying 271 s → 44 s for 145 frames.




  
  
  <strong>One-shots retimed to game speed</strong>
  
  Image-to-video plays a quick attack as a slow-motion clip. <code>retime --auto-oneshot</code> cuts the frozen holds and pins the hit: 4.1 s → 0.7 s, hit at 292 ms.


  
  
  <strong>HD colour lock</strong>
  
  Video models drift colours on fast limbs. The lock holds every design colour on the master's (OKLab chroma, lightness kept): hue flips halve and most of the boot shimmer goes away.
Measured on the live runsbefore0.4
Pixel fox (48x64, 8 frames): colours per frame594–70916–19
Pixel fox: alpha levels1992
Pixel fox: lone pixels per frame (mean)73275
Keyer: purple fringe (outer-ring spill, mean)0.7040
Keyer: key pixels leaked over 145 frames7,7800
Keyer: time for 145 frames271 s44 s
Attack: one-shot length4.1 s0.7 s
Colour lock: hue flips per frame pair (run loop)352170
QC: good takes wrongly rejected18 of 240 of 24

What changed:

  • Image generation first. Every image and clip goes through one command, route_media.py: your API key if you configured one (OpenAI, Google Gemini, xAI, BytePlus, fal.ai), else your signed-in Codex or Grok CLI, else code art as the last resort. See Routes and providers.
  • One master still per character. master_still.py writes the prompt, generates takes, fixes a near-miss by edit and approves one still (master.json).
  • A whole set from that still. sprite_set.py makes one image-to-video clip per action, gates every take (area, feet, identity, zoom, turning around, edges, background, extra objects, motion, end pose, colour bleed, timing), retakes with fix clauses, keys with a soft matte, registers, picks loops, retimes one-shots, finishes and packages.
  • HD finish by default, crisp pixel finish on request. One body scale per character from the master. The pixel finish adds a crisp downscale, a spaced palette of at most 32 colours, a selective outline and binary alpha.
  • Colour lock on every action of a set, and QC recalibrated on 42 labelled live takes.
  • Engine exports. animation.json 3.0 with a PNG atlas, VP9-alpha WebM and packed-alpha MP4, decoded and verified; Godot SpriteFrames and Sprite3D; Aseprite JSON; maps for Tiled, Godot and LDtk.
  • Claude Code plugin, plus Codex and Grok installs. Hardened on Windows: Codex sandbox run folders, locked-file cleanup, cp1252/cp950 consoles.

Everything in the CHANGELOG. The live record, weak points included: docs/validation-2026-10-06.md.

Quickstart

1. Install

Claude Code (plugin)

claude plugin marketplace add 0x0funky/agent-sprite-forge --sparse .claude-plugin skills
claude plugin install agent-sprite-forge@agent-sprite-forge
python -m pip install "numpy>=1.26" "Pillow>=10.1" "scipy>=1.11"

--sparse checks out only the plugin manifest and the skills, not the showcase media.

Codex

git clone https://github.com/0x0funky/agent-sprite-forge.git
cd agent-sprite-forge
python -m pip install -r requirements.txt
python tools/install_skills.py --apply --host codex

Grok: from the same clone, python tools/install_skills.py --apply --host grok (~/.grok/skills). --host agents writes ~/.agents/skills and --dest <folder> any skills folder.

--apply backs up an installed copy and writes a sha256 manifest; `python

Xem mã nguồn trên GitHub