hgosansn/slopformer

Agent pipeline for sprite character generation.

0

stars

3

commits

Python

primary language

Mar 6, 2026

updated

hgosansn.github.io/slopformer/
ai
diy
sprites

README

SlopFormer

Live Demo Repo Size Last Commit

SlopFormer

SlopFormer is a sprite pipeline + web demo for building game-ready character animations from generated video and curated frames.

Live Demo

What It Does

  • Generates animation clips (local CogVideoX or external video source)
  • Extracts frames at controllable fps
  • Lets you manually prune bad frames
  • Removes backgrounds to transparent PNG
  • Builds normalized spritesheets + metadata
  • Previews characters in-browser with movement/jump logic

Quick Start

# 1) extract frames from an animation clip
python3 extract_frames.py work/trex/jump.mp4 --character trex --fps 4

# 2) remove backgrounds
python3 remove_bg.py --character trex

# 3) refresh character metadata
python3 init_metadata.py --character trex --fps 4

# 4) build jump spritesheet
python3 build_spritesheet.py --character trex --animation jump --size 128

Then open index.html.

Docs

Deployment

GitHub Pages auto-deploys from main via .github/workflows/pages.yml.

Contributors

hgosansn

3 commits

hgosansn/slopformer

Agent pipeline for sprite character generation.

0

stars

3

commits

Python

primary language

Mar 6, 2026

updated

hgosansn.github.io/slopformer/
ai
diy
sprites

README

SlopFormer

Live Demo Repo Size Last Commit

SlopFormer

SlopFormer is a sprite pipeline + web demo for building game-ready character animations from generated video and curated frames.

Live Demo

What It Does

  • Generates animation clips (local CogVideoX or external video source)
  • Extracts frames at controllable fps
  • Lets you manually prune bad frames
  • Removes backgrounds to transparent PNG
  • Builds normalized spritesheets + metadata
  • Previews characters in-browser with movement/jump logic

Quick Start

# 1) extract frames from an animation clip
python3 extract_frames.py work/trex/jump.mp4 --character trex --fps 4

# 2) remove backgrounds
python3 remove_bg.py --character trex

# 3) refresh character metadata
python3 init_metadata.py --character trex --fps 4

# 4) build jump spritesheet
python3 build_spritesheet.py --character trex --animation jump --size 128

Then open index.html.

Docs

Deployment

GitHub Pages auto-deploys from main via .github/workflows/pages.yml.

Contributors

hgosansn

3 commits

Languages

Python

52.4%

HTML

47.6%