A simple WPF tool for generating tilesets from a base texture and border image.
It supports both 9‑slice borders (40 recipes → 10×4 tileset) and 4‑block borders (16 recipes → 4×4 tileset).
- Load a border image and a base tile
- Enter border size
- Automatically detects:
- 9‑slice mode → 40 recipes, 10×4 tileset
- 4‑block mode → 16 recipes, 4×4 tileset
- Exports a single PNG spritesheet ready for game engines like Godot or Unity
- Clone the repo
git clone https://github.com/yourusername/tilemap-builder.git cd tilemap-builder - Build and run the project using Visual Studio or your preferred IDE.
- Load your images:
- Click "Load Border Image" to select your border texture.
- Click "Load Base Tile" to select your base tile texture.
- Set the border size in pixels.
- Generate the tileset by clicking the "Generate Tileset" button.
If the border size is exactly half the image width and height → 4×4 tileset (TileSetRecipeB).
If the border size is smaller than half → 10×4 tileset (TileSetRecipe).
Works best with square tiles (e.g., 64×64, 128×128 pixels).
The border image should have transparent areas where the base tile will show through.
KillGorack.com
MIT License — free to use, modify, and share.