Tileset generator
This tileset generator creates a grass, dirt and water PNG atlas with matching terrain edges, a joined map preview and tile-index JSON.
Show all 32 tiles
128 × 64 atlas · 256 compatible edges checked · 0 mismatches
Export a complete terrain atlas
Choose Meadow for green grass, brown earth and blue water, or Dusk for cooler grass and purple-brown ground. The atlas contains 32 tiles in eight columns and four rows. At 16 px per tile it is 128 × 64 px. At 32 px it is 256 × 128; at 64 px it is 512 × 256. Spacing and margins are zero.
The first sixteen tiles blend dirt into grass. The next sixteen blend water into grass. All three terrain colors are generated together, so the shared grass remains identical in both groups. The map preview uses those exact atlas pixels to make a pond and a separate earth patch. Open Show all 32 tiles to inspect every pattern before downloading.
Read the four corner bits
A tile's pattern is a number from 0 through 15. Its bits stand for top left (1), top right (2), bottom left (4) and bottom right (8). A set bit selects the patch terrain; a cleared bit selects grass. Pattern 0 is entirely grass and pattern 15 is entirely dirt or water. Pattern 3 has a patch across its top two corners.
The dirt tile id is its pattern. The water tile id is 16 plus its pattern. For a valid horizontal join, the left tile's top-right and bottom-right bits match the right tile's top-left and bottom-left bits. Vertical joins use the two bottom bits and two top bits. The Tiled terrain manual describes this as a Corner Set and shows how to mark patterns for its Terrain Brush.
Check the actual edge pixels
For the default 16 px Meadow set with seed 2026, the checker compares 256 compatible edge pairs and finds 0 mismatches. It reads every pixel along each shared edge. The workbench repeats the same comparison whenever you change size, palette or seed. This catches a texture that almost joins but leaves a colored line at the boundary.
The test applies to matching corner patterns. Randomly placing unrelated patterns can still draw an abrupt terrain boundary. Dirt and water each join grass through their own group; keep grass between a dirt patch and a pond, as in the preview. A map with all three terrains meeting at one corner needs additional transitions. Use these two groups for islands and paths separated by grass.
Paint with the exported tiles
Press Use in map editor to load the atlas directly into the tilemap editor. Pick a tile and paint your map in layers. The editor supports manual tile painting; choose the corner patterns that fit your neighbors. Export your map and atlas together. In Godot or Tiled, configure the corner set once to have the engine pick the matching pattern automatically.
Tilesetter offers a desktop workflow for composing and editing maps with smart tilesets. Here you can begin with generated terrain and move straight to the browser editor. Use the pixel art maker for decorative sprites and the sprite generator for a character to place over your terrain.
The atlas uses ordinary row-major indexing. To draw a tile at a destination position, crop its cell from the PNG. This example assumes you already loaded the image and read the tile size from the JSON:
const column = tileId % 8;
const row = Math.floor(tileId / 8);
ctx.imageSmoothingEnabled = false;
ctx.drawImage(atlas, column * tileSize, row * tileSize,
tileSize, tileSize, x, y, tileSize, tileSize);Questions
How do I generate a tileset?
Choose tile size, palette and seed, then export Atlas PNG and Atlas JSON. The PNG has eight columns and four rows: sixteen grass-to-dirt patterns followed by sixteen grass-to-water patterns. Use in map editor transfers that same PNG and its tile size.
How do the terrain edges join?
Each tile is described by four corner bits. Neighbors join when the two corner bits on their shared edge match. The generator uses the same texture coordinates at opposite edges and checks every compatible pair of tiles for exact pixel equality.
Can I use these tiles in Godot or Tiled?
Yes. Import the atlas image with its chosen tile size, zero spacing and zero margins. For terrain painting, mark each tile's corner pattern in the engine. The JSON records the bit order and group offsets; it is a plain atlas description, not a Godot resource file.
What does the tileset seed change?
The seed changes the speckled texture colors within each terrain. It keeps the corner patterns and tile ids fixed. The same size, palette and seed reproduce the same atlas, and the compatible-edge check runs again for those settings.
Put your assets into a playable game. Try the ten game templates or get the kit.