spriteforge/docs/import-composite.md

576 B

Local import and composite backends

Import a PNG or row-major sprite sheet without any network service:

potion:
  backend: import
  source: source/potion_sheet.png
  params: {frame_width: 32, frame_height: 32, frames: 6}
  fps: 12

Compose equally-sized PNG layers in back-to-front order:

armored_body:
  backend: composite
  layers: [source/body.png, source/armor.png, source/helmet.png]

All paths are relative to the manifest. Source bytes participate in the cache key, and both backends feed the same crop, palette, normal and depth pipeline.