Game Dev Tools

sprout-toolkit

[ Open Source ][ Active ]

Deterministic procedural 2D asset generation for Expo + react-native-skia

sprout is an open-source toolkit for deterministic procedural 2D asset generation: it generates atlases, tilemaps, autotiles, bitmap fonts and SkSL shaders from JSON specs. Same seed, same pixels, every time — reproducible and testable in CI. Pip-first with sprout init (and an `npx sprout` npm wrapper with a strict version pin), installs via `sprout-toolkit` on PyPI (0.4.1) — command stays `sprout`.

// Features

  • Deterministic procgen: numeric seeds reproduce identical atlases, testable in CI — atomic writes (no half-written atlas/manifest)
  • Six generators: terrain (seamless + autotile), blob_walk, props, particles, ui, and bitmap fonts from TTF
  • 8-bit autotile (16/47 variants) and runtime SkSL shaders emitted as source — no added bundle weight
  • CLI: sprout init, import (pack loose PNGs), generate, batch, watch, info, lint, diff, validate, diversity — plus --supersample for antialiased edges and the npx sprout wrapper
  • Flexible export: PNG8/PNG24, TexturePacker format, atlas mipmaps, and manifest schemaVersion — all opt-in
  • Open source, MIT-licensed, 420 tests and 13 specs across Python 3.10–3.13 — Pillow >=10,<13 validated

// Technologies

// quick-start — v0.4.1

pip install sprout-toolkit
sprout init --out ./assets/starter
sprout generate ./assets/starter/critter.json
sprout watch ./assets            # rebuild on spec change

npm wrapper: `npx sprout` con pin estricto de versión · export listo para TypeScript (manifest.json + index.ts).