sprite-gen
Generate clean 2D game sprites and animation atlases: state rows, alpha cleanup, frame extraction, runtime atlases.
- GitHub 星数
- 2,951 (GitHub 星数,统计于 2026-10-21)
- 许可证
- Apache-2.0
- 最近提交
- 2026/10/21
- 作者
- aldegad
信息来自作者的 README。 GameSkill 还没完整跑过。支持的 Agent 和安装步骤以作者文档为准。
安装
git clone https://github.com/aldegad/sprite-gen.git
cd sprite-gen
python3 -m venv .venv && source .venv/bin/activate
pip install -e .
sprite-gen --helpsprite-gen prepare --out-dir <run> --character-id <id> --base-image base.png
sprite-gen gen-set --run-dir <run> --provider codex
sprite-gen extract --run-dir <run>
sprite-gen compose-atlas --run-dir <run>命令照搬项目 README。在本机运行前,请先看一眼仓库。
包含内容
- A sprite-sheet with alpha plus manifest.json for your engine
- State rows such as idle, walk, run, jump and attack from one base image
- Optional loop repair for walk, run and jump cycles
适合
- Turning one character still into game-ready animation atlases
- 2D games in any engine
不适合
- 3D assets
概述
sprite-gen is a component-row pipeline for 2D characters. You start from one base image. The tool prepares prompts and guides, generates every animation state row, removes the chroma background, extracts frames and composes a runtime atlas with a manifest.
A second path turns short generated videos into transparent loops, with cycle-length alignment across directions. It works as a Codex or Claude skill, and the CLI can also be used on its own.
环境要求
- Python 3 with a virtualenv (the only supported interpreter)
- For video loops: ffmpeg, img2webp and a Grok login or XAI_API_KEY
常见问题
相似 skills
Universal Modder
Skills, tools and a fal MCP that let Claude Code mod PC games you own: recon, reverse engineering, generated assets, in-game testing.
Create Game Assets
Plan, generate, source, normalize, and validate cohesive visual game assets.
Shader Programming
Write game shaders from cross-engine fundamentals — the vertex→fragment pipeline, coordinate spaces, UV math, and common 2D/3D effects (tint, UV scroll, dissolve, outline, fresnel rim, vignette) in GLSL with HLSL equivalents.
Scenario Skills
Production-ready images, video, audio and 3D from any agent through the Scenario MCP, plus expert teams for Blender, Unreal and Unity.