跳过主要内容
ANY
Skill免费

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
下载 ZIP

信息来自作者的 README。 GameSkill 还没完整跑过。支持的 Agent 和安装步骤以作者文档为准。

安装

Install the CLI (in a fresh virtualenv)
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 --help
Atlas pipeline
sprite-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