589bdaef101537cdb74547ca7d9c016d810c1377
composeAtlas blits placed tile pixels into bounds-sized RGBA + L8 PNGs, synthesizing L8=0 planes for unpaired diffuse tiles. buildAtlasJson emits the metadata with deterministic ID-sorted tile arrays and applies the optional blocks_sight regex. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
sporel-tool-atlas-baker
Builds paired diffuse + height PNG atlases for the Sporel map-lib v0.3.0+ format.
Usage
sporel-atlas-baker \
--in <source-dir> \
--out <atlas-dir> \
--atlas-id <stable-id> \
[--tile-size 64] \
[--max-size 4096] \
[--lock <existing-lock.json>] \
[--blocks-sight-pattern <regex>]
See sporel-meta/docs/superpowers/specs/2026-05-21-map-multi-layer-design.md §4 for the format spec.
Development
npm install
npm test
Description
Languages
JavaScript
100%