Skip to content

A simple program that creates tile maps for use with game engines like Godot, or Unity. Mostly for 2D games

Notifications You must be signed in to change notification settings

KillGorack/TileMapCreator

Repository files navigation

Tilemap Creator

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).

Features

  • 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

Getting Started

  1. Clone the repo
    git clone https://github.com/yourusername/tilemap-builder.git
    cd tilemap-builder
  2. Build and run the project using Visual Studio or your preferred IDE.
  3. Load your images:
    1. Click "Load Border Image" to select your border texture.
    2. Click "Load Base Tile" to select your base tile texture.
  4. Set the border size in pixels.
  5. Generate the tileset by clicking the "Generate Tileset" button.

Usage Notes

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.

User interface

image

Example 16 block map

TileSet_20251116064445

Example 40 block map

Stone_Block

Example in Godot TileSet Editor

image

KillGorack.com
MIT License — free to use, modify, and share.

About

A simple program that creates tile maps for use with game engines like Godot, or Unity. Mostly for 2D games

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages