agent-sprite-forge  by 0x0funky

2D game asset generation from prompts

Created 4 days ago

New!

896 stars

Top 40.1% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

Agent Sprite Forge provides a suite of agent-based skills for generating 2D game assets, including sprites, animations, and layered maps, directly from natural-language prompts. It targets game developers and technical artists seeking to streamline asset creation by integrating prompt-driven image generation with deterministic local post-processing. The primary benefit is enabling rapid, iterative development of game-ready assets within an agentic workflow, reducing the need for manual asset creation or complex external toolchains.

How It Works

This project employs a "Codex-first" approach, leveraging agents like Codex that possess built-in image generation capabilities. It offers two core skills: generate2dsprite for creating sprites, animations, and props, and generate2dmap for assembling game maps. The workflow involves an agent planning the asset or map pipeline, Codex generating raw images, and local Python scripts (using Pillow and NumPy) performing deterministic post-processing for cleanup, frame extraction, alignment, and export. generate2dmap can orchestrate generate2dsprite for reusable map elements, supporting layered map strategies with collision and zone data. This integrated pipeline minimizes external dependencies and streamlines the asset generation loop.

Quick Start & Requirements

Installation involves cloning the repository, installing Python dependencies (Pillow, numpy via requirements.txt), and copying the skills directory into the Codex skills path (~/.codex/skills or $env:USERPROFILE\.codex\skills). A new Codex session must be started afterward. The local post-processor requires Pillow and NumPy. The core functionality relies on a Codex environment capable of image generation.

Highlighted Details

  • Generates a wide array of 2D assets: transparent PNG frames, animated GIFs, sprite sheets, layered maps, collision data, spell bundles, character animations, props, and FX.
  • Supports flexible map generation pipelines, from single baked images to complex layered maps with base layers, transparent props, collision metadata, and flattened previews.
  • Designed for agentic workflows, enabling a complete asset creation loop (plan, generate, process, export) within a single agent environment.
  • Features deterministic local post-processing scripts for reliable cleanup, frame extraction, alignment, and export of generated assets.

Maintenance & Community

No specific details regarding maintenance, notable contributors, sponsorships, or community channels were found in the provided README content.

Licensing & Compatibility

The project is released under the MIT license. This permissive license generally allows for commercial use, modification, and distribution, including integration into closed-source projects, with standard attribution requirements.

Limitations & Caveats

The project's focus is strictly on 2D game assets and map scenes, not on automating the creation of complete, playable game packages. Its "Codex-first" design implies a strong dependency on the Codex agent environment for its core image generation capabilities.

Health Check
Last Commit

19 hours ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
908 stars in the last 4 days

Explore Similar Projects

Feedback? Help us improve.