spriteforge/docs/import-composite.md

23 lines
576 B
Markdown
Raw Normal View History

# Local import and composite backends
Import a PNG or row-major sprite sheet without any network service:
```yaml
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:
```yaml
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.