Beginner · Tileset and Tilemap · Free Windows pixel art editor

How to Create a 2D RPG Tileset

Build reusable dungeon floor, wall, and door tiles, then paint a small room and export its tileset.

An eight-by-six pixel-art dungeon room with a stone floor, walls, and a wooden door in the top wall
Lantern Dungeon, assembled in SpriteOpal from three reusable 16 × 16 tiles.

Example files

What you'll make

Build a small dungeon room using three reusable 16 × 16 tiles: a floor, a wall, and a door. A tile is one reusable picture; a tileset is the collection of those pictures; a tilemap stores which tile is placed in each grid cell.

Open the sample project to inspect the finished room, or use the steps below to build it from scratch. The atlas contains the reusable tiles; the room image above shows how they fit together.

Before you start

Install SpriteOpal for Windows. Choose File → New artwork..., set Width and Height to 128 and 96 pixels, choose Transparent and Square Pixels (1:1), and select Create artwork. This gives you an 8-by-6 grid of 16-pixel cells.

Save the editable .opal project with File → Save project. The exported atlas and JSON are useful outputs, but keep the project if you want to change the tiles or map later.

Step 1: Create a tileset and tilemap layer

Select Tilemaps in the Layers panel. Choose New tileset, enter 16 for both Tile width and Tile height, and select New tilemap layer. The new layer is selected for painting.

Tile 0 is transparent and represents an empty cell. Select tile 1 for your first editable tile. The tile editor enlarges its pixels so you can draw the pattern precisely.

New tileset selected with tile width and height both set to 16
Enter 16 in both size fields, then select New tilemap layer. You should see 8 × 6 cells in the dialog.

Step 2: Draw floor, wall, and door

Select tile 1. Use the color swatch above the enlarged tile editor, then drag across the pixels to paint. For the floor, fill the tile with a dark gray, leave a two-pixel border, and add a lighter square inside it. Matching borders make adjacent floor tiles join cleanly.

Choose New tile for tile 2. Draw darker stone and put each horizontal mortar line at the same height along both edges. Choose New tile again for tile 3. Repeat the wall’s top row of stone, then add a wooden door, a darker frame, and a small bright handle.

Use Erase tile pixels or right-click in the tile editor to remove unwanted pixels. Editing a source tile changes every placed occurrence that shares it, so duplicate a tile before making a variation you want to use independently.

Tileset editor showing the empty, floor, wall and door tiles with the door selected
The left thumbnails select the source tiles. The color swatch and enlarged editor on the right let you change the selected tile.

Step 3: Paint a test room

In Tiles mode, select tile 1 (floor) and the Fill tiles icon. Select Done and click once inside the empty canvas to fill it. Reopen Tilemaps, select tile 2 (wall) and Paint tiles, then select Done and paint around all four outside edges.

Reopen Tilemaps, select tile 3 (door) and Paint tiles, then select Done. Replace the fourth tile from the left in the top row with the door. If you need an empty cell, pick Erase tiles instead and click the cell on the canvas.

Zoom out and inspect repeated floor and wall joins. Reopen the tile editor and adjust the source edges if seams appear; every instance of the source updates, making it easy to test the correction across the room.

Finished Lantern Dungeon on the SpriteOpal canvas with a tilemap layer selected
The room uses floor tiles in the center, wall tiles around the outside, and a door in the fourth cell of the top row.

Check your result and fix common problems

Count the cells: a 128 × 96 canvas with 16 × 16 tiles holds eight columns and six rows. Floors should meet without abrupt edge changes, wall lines should connect, and the door should remain legible against the wall.

If a tile edit changes multiple locations, those cells share the same source; use Duplicate tile for a separate variation. If an edit is blocked, check whether layers sharing the tileset are locked. If the wrong tile appears, reopen Tilemaps and check the selected tile and brush.

Export the tileset and map

Open Tilemaps for the active tilemap layer and choose Export PNG and JSON. In the desktop app, choose the PNG destination. The PNG is the tileset atlas, not a picture of the entire room; the JSON contains tile dimensions, frame cell references, durations, and flip flags.

Open the PNG and JSON to check that both files exist and that the data describes 16 × 16 tiles. Your game or engine needs an importer that understands the data; no automatic engine integration is implied. To export a flat picture of the room instead, select the frame and use File → Export... → PNG.

Related manual pages

For more detail about the tools used in this project, consult the user manual:

Related tutorials

Create your own with SpriteOpal

Make and export your own pixel art with the free Windows editor.

Get SpriteOpal for Windows