Tilesets that connect.

Describe two surfaces and PixelLab draws the tiles that join them: sixteen for a coast, twenty-five with tall walls. PixelKiln prices the set, records it, and exports it to Tiled, Godot or LDtk with its placement rules.

Tiles and engine exports
A sandy island with a grass meadow in the middle, surrounded by ocean, built from two connected tilesets

Describe the border. Get the tiles.

A map is drawn from tiles that join. A terrain set is the whole family for two surfaces, grass and water, floor and lava, drawn together so the corners match, whichever way the border turns. Sixteen tiles cover a coast. Twenty-five add the walls when one surface stands above the other.

Sixteen tiles of grass meeting shallow water along a winding shoreline with a dark raised bank
One set, sixteen tiles. Grass to shallow water on 32px tiles, with a raised, winding bank. 10 generations.
Paint it yourself.

Ocean to sand, then sand to grass: two connected sets as one brush. Click or drag to paint a corner dot. Each tile is chosen by the four dots around it. No set joins every pair, so painting two that never meet leaves the terrain between them.

A sandy island with a grass meadow in the middle, surrounded by ocean, edges cut at 45 degrees
Two sets that share a terrain. Ocean to sand, then sand to grass, which reuses the first set's sand. 15 generations each.
Dark stone dungeon floors raised over a lava sea, with brick walls dropping into the lava and lava pits cut into the floors
One set with tall walls. Dungeon stone over lava at 64px: 25 tiles, walls included. 25 generations.
  • A tile records which surface fills each of its four corners, so an engine can pick the right one for any neighbour. PixelKiln keeps that record beside the file.
  • The set comes from one request, so its tiles are drawn to match. You review the set, not tile by tile.
  • A set that shares a surface with another waits for it, and goes stale if the first is regenerated.

Pick the kind that fits the map.

Each kind is a generator in the manifest, so plan prices it before anything is sent. The prices below were billed in live runs, and the lockfile records what each set actually cost.

terrainTwo surfaces and the border between them, as 16 tiles, or 25 when the walls are tall. Top-down.Pro: 15 generations at 32px, 25 at 64px. Standard: 1 to 3.
terrain, sidescrollerA platform set: a stone or earth body with a grass or snow top, 16 tiles.1 generation on standard, 15 on pro.
tilesIndependent ground tiles, an 18-piece road set, a 16-tile terrain transition, or a building kit of floors, walls, doors and stairs.10 to 25 generations.
isometricTileOne block: a raised mesa, a cliff, a floor slab, with the thickness you choose.1 generation.
asset importYour own sheet, cut into tiles and put under the same record, review and export.Free.

Bring your own texture.

Give a terrain a PNG and PixelLab uses it almost as the texture itself, drawing only the border between. In the test, two hand-made 16×16 striped swatches came back as the fill of both terrains, stripes intact. Hand it a tile you would be happy to see repeated.

A sixteen-tile set of teal striped pools in a purple striped floor, beside the two small striped swatches it was made from
Your texture, their borders. A standard set from two swatches (right). 1 generation.
Two sixteen-tile platform sets: light mossy stonework above, denser earth with a bright grass cap below
Platforms, standard above and pro below. The same prompt as a sidescroller set on each mode. 1 generation and 15.
pixelkiln.manifest.json
"styles": {"cave":  { "generator": "terrain", "size": 16, "outDir": "tiles/cave" },"ledge": { "generator": "terrain", "size": 16, "outDir": "tiles/ledge","terrainOrientation": "sidescroller" }},"assets": {"pool": {"prompt": "1). teal slime pool 2). purple crystal floor","styles": ["cave"],"terrainReferences": { "lower": "refs/slime.png", "upper": "refs/crystal.png" }},"moss": { "prompt": "1). mossy stone bricks 2). green grass", "styles": ["ledge"] }}
  • A reference is hashed into the set's identity: replace the file and the set is stale, rename it and nothing changes.
  • A file that changes between plan and gen is refused, so the request always matches what was priced.
  • Other controls shape the border: tileElevation raises a bank, tileBoundaryAmplitude makes the line meander, and terrainRoundness with terrainConnectDiagonals cuts a coast at 45°.

Isometric, in four kinds.

The same generators draw on a diamond grid when you set tileType: "isometric". These came from one manifest, in one run. The sheets are untouched PixelLab output; the two maps are those sets painted in Godot.

A diamond of grass with a dirt road laid across it, with corners, a T-junction and a crossing, drawn in Godot
The road set, painted. The ground filled with the plain tile, then a road laid with Godot's terrain tool from the exported TileSet. Each stroke picked its own end, turn and junction.
A diamond of grass with a grey cobblestone plaza and two paved patches, drawn in Godot
The terrain set, painted. Cobblestone laid over grass the same way, with a lawn left inside the plaza.
Sixteen isometric blocks of grass and worn cobblestone, each a raised slab with earth showing along its side
A terrain set. Short green grass to worn grey cobblestone, 16 tiles at 32 by 24. Billed 10 generations against a plan of 25.
Eighteen isometric slabs of grass with a brown dirt road running across them in every junction and turn
A road set. A dirt road over grass: every end, turn, junction and crossing, 18 tiles at 48 by 48. Isometric roads must be 48 to 96px; the API refused 32 before charging anything. Billed 10. Its diamond is flatter than the ground's (3:1, not 2:1). A steeper view made it 2:1 in two more runs, but one came back with stray fragments and the other with a grid of outlines, so this seamless one stays.
Fifty-eight pieces of a grey stone building kit: wall sections, corners, pillars, doorways, stairs and floor slabs
A building kit. A stone hall with a slate roof as 58 separate pieces: walls, corners, pillars, doorways, stairs and floors, each 52 by 58. Billed 10.
A stone hall in three tiers, each a floor higher than the last, joined by two flights of stairs, with a doorway in the back wall, and a small side room one level up, reached by a ramp
The kit, stacked. A hall in three tiers and a side room one level up, from the same 58 pieces: walls, flagstones, pillars, doorways, solid blocks, two flights of stairs that climb 32 pixels each, and a ramp. The kit has no half-height block, so the supports under the upper flights are a solid block with 16 pixels cut from its middle. Two touches are ours too: the kit draws the ramp's slope far paler than its stairs, so the slope is repainted in the stairs' stone, and a doorway is open to whatever lies behind the wall, so each one is filled with a dim passage. The pieces are placed by script from the kit's own heights; no engine lays a kit like this for you yet.
Two isometric blocks: earth with a thick grass top, and grey mossy stone bricks
Single blocks. isometricTile: one tile per prompt, 32 by 32. 1 generation each.
  • A tile image is taller than its diamond. The 32 by 24 tiles are a 32 by 16 diamond with 8 rows of side below it, so export finds the diamond and gives Godot its cell and offset, and Tiled its grid, to stand each image on its cell.
  • The terrain set is corner-ruled and the road set is edge-ruled. Both export to Godot and Tiled. The road set's four edges are the diamond's four sides, which we measured on these tiles and checked by painting a road network in Godot.
  • A building kit has its own rule family, so it exports to the generic file with every rule kept. An engine importer has to place its pieces.

Out to Tiled, Godot and LDtk.

A folder of tile images is not a tileset until an engine knows which tile goes where. export writes the atlas and the placement rules together, so the engine's terrain brush can paint with it. Godot's was checked by painting.

LDtk open on a generated project: a layer list on the left, and a painted preview of grass islands in a lake, every shore drawn with the right edge tile
The result, opened in LDtk 1.5.3. The Preview level that --format ldtk writes, drawn by the auto-rules the export wrote. Pick the corners layer and paint: the shores redraw.
Generic JSON.jsonThe lossless record: the atlas, every tile's rectangle and mask, and the provider's raw rules. For any engine without an exporter.Round-trip tests.
Tiled.tsjAn image tileset with a Wang set, its ids in Tiled's own order. Isometric sets get their diamond grid and the offset that seats each image on it.Follows Tiled's documented format. Not loaded by Tiled in CI.
Godot 4.tresA TileSet with terrain peering bits on every tile. Isometric sets get the diamond as the cell, each image placed on it, and a diamond layout.A headless Godot 4.7.2 loads it in CI, reads a peering bit and the isometric geometry back, and paints square and isometric corner and edge sets, and the three-terrain coast, with every border compared to the strokes. Drawn in Godot, isometric cells tile exactly.
LDtk.ldtkA project: the tileset, a paint layer, an auto-rule layer, and a Preview level that uses every rule.Opened in LDtk 1.5.3, where its own rules redrew the tiles the file stores.
terminal
pixelkiln planpixelkiln gen --budget 15pixelkiln export --style ground --only terrain --format tiledpixelkiln export --style ground --only terrain --format godotpixelkiln export --style ground --only terrain --format ldtkpixelkiln export --style ground --only terrain --format generic
  • Each export has a record of its inputs and output hashes. An edited file stops the next export instead of being overwritten.
  • Fix a tile by hand with pixelkiln edit --only coast --no-open. It copies each tile to edits/, and the next export uses your version and names the files in its record.
  • Brought your own sheet? asset import cuts it into tiles under the same record and export.

One brush for several sets.

A coast takes three sets, and each one joins only two surfaces. Exported one at a time they are three brushes that do not know the sand is the same sand. Add --merge-connected and the sets that share a surface come out as one tileset with all four. Naming any one set exports the group, and every set in it has to be generated first. Surfaces no set joins, ocean against grass, leave empty cells where they meet, so plan a set for every pair that touches.

terminal
pixelkiln export --style ground --format tiled --merge-connectedpixelkiln export --style ground --only meadow --format ldtk --merge-connected

What it does not do yet.

  • Connected sets export one at a time unless you ask for --merge-connected. A sidescroller set connects only its platform, so it always exports alone.
  • Six-edge hex masks stay in the generic JSON, and so do edge masks on oblique tiles for Godot: we have not measured which diagonal each bit means. LDtk takes square tiles only.
  • Terrain sets are square, top-down or side-on, because PixelLab's tileset endpoint has no shape option. Isometric ground comes from tiles, and exports with its diamond geometry. A single raised block is isometricTile.

Draw a coast. Open it in your engine.

Describe two surfaces, read the price, and export. The first set is one command after the plan, and the lockfile records what it cost.

pixelkiln.manifest.json
"styles": {"ground": { "generator": "terrain", "size": 32, "outDir": "tiles" }},"assets": {"coast": { "prompt": "1). deep ocean water texture 2). plain smooth sand texture" }}

More of PixelKiln.

Teach your agent PixelKiln.

The skill tells compatible agents when to plan, when to ask for a budget, when to restore existing work, when to stop for human review, and how to verify output.

Agent setupLibrary quickstart