A lightweight tile-based map editor built with PyQt6. Choose from multiple tilesets, paint tiles onto a customizable grid, and save/load your creations as JSON.
- Multiple tilesets (field and dungeon) with color-coded tiles.
- Select a tile by clicking a tile button, then click or drag on the map grid to paint.
- Adjustable grid dimensions (width × height) with live resizing.
- JSON save/load that preserves grid dimensions and available tiles.
- Support for importing external tiles.
- Python 3.12+
- PyQt6
Run the following commands to set up the environment:
# 1. Python 3.12 で環境を作成
conda create -n pyqt6_env python=3.12 -y
# 2. 作成した環境を有効化
conda activate pyqt6_env
# 3. PyQt6 をインストール
pip install PyQt6# Running the editor
conda activate pyqt6_env
python3 main.py- Click a tile button to make it the active brush.
- Click or drag anywhere on the grid to place the selected tile.
- Adjust the width/height spinboxes and press サイズ変更 to resize the grid.
- Use File → Save Map / Load Map to persist or restore your maps (JSON files).
- Click the Load Tile button to import a single image file (PNG, JPG, etc.) as a new tile. This tile will typically be added to a new tileset named "外部" (External).
- Click the Load Tileset button to import a larger image file and split it into multiple individual tiles.
A "タイルセット分割" (Tileset Split) dialog will appear, allowing you to specify how many horizontal and vertical
divisions to make.
The application will then automatically save the split tiles and add them to a new tileset based on the original image's filename.
- Click the load tileset button and select the image.
- A dialog will appear; set the split size.
- The tileset will be loaded with the image name.
Happy mapping!