Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Tileset Web Tool (Experimental)

Use this page to compose/decompose a small tileset directly in your browser.

For normal tileset work, use scripts/tileset.ts instead:

deno run -A scripts/tileset.ts --pack gfx/Retrodays
deno run -A scripts/tileset.ts --unpack gfx/ChestHole16Tileset

See Tilesets for the full workflow. The TypeScript tool was added in PR #8151.

Input directory

Tileset root folder means the folder in your working copy that contains tileset.txt, for example gfx/Retrodays/ or gfx/ChestHole16Tileset/.

For compose, select a folder that contains:

  • tileset.txt
  • tile_info.json
  • one or more pngs_* directories with sprite PNGs and tile_entry JSON files

Name each sprite folder pngs_<sheet name without .png>_<sprite width>x<sprite height>. For the key "normal.png" with 32x32 sprites, the folder is pngs_normal_32x32:

MyTileset/              <- select this folder
├── tileset.txt
├── tile_info.json      <- [ { "width": 32, "height": 32 }, { "normal.png": {} } ]
└── pngs_normal_32x32/
    └── images0/
        ├── t_grass.png
        └── t_grass.json

If the folder you pick has tile_info.json and a pngs_* folder, Compose is selected. If not and it has tile_config.json, Decompose is selected.

For decompose, select a folder that contains:

  • tileset.txt
  • tile_config.json
  • the tilesheet PNG files referenced by tile_config.json

The browser does not upload files. It reads the selected local folder and downloads a ZIP with the result.

Limits

  • Intended for quick validation and tutorial usage.
  • Supports one regular tilesheet per tileset.
  • Preserves pixel data for sprite extraction/composition.