Library API

Export generated tiles

import { exportTileset } from "pixelkiln"

const exported = exportTileset(lockEntry, spec, {
  format: "tiled",
  manifestDir: loaded.root,
  imageName: "terrain.png",
  columns: 8,
})

The generic format preserves the complete provider rule object. Tiled and Godot exporters translate supported 4-edge and 4-corner rule sets and reject unknown semantics rather than emitting plausible but incorrect adjacency. See TILES.md for file contracts and engine details.