pixi-tiledmap lets developers edit and export Tiled maps directly in the browser

A TypeScript library called pixi-tiledmap has been developed to load, render, edit, and export Tiled maps using PixiJS v8 in the browser. The library allows developers to place tiles programmatically via a setTile API that accepts layer names, grid coordinates, and tileset references, updating both the visual display and underlying map data in real time. Edited maps can be exported as standard Tiled JSON (.tmj) files using the exportMap function, making them immediately reopenable in the Tiled map editor. Because Tiled stores tileset images as file paths rather than embedding them, the library also supports bundling the map and its assets together into a single ZIP file using fflate. The workflow enables a full round-trip edit cycle — from Tiled to browser and back to Tiled — without leaving the standard .tmj format.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in