Tiled can be extended using JavaScript. This repository provides a number of example extensions that can either be useful as-is or can provide a starting point when writing your own extensions.
When you want to add these extensions to your Tiled installation:
-
Open Tiled and go to Edit > Preferences > Plugins and click the "Open" button to open the extensions directory.
-
Download the files in this repository and extract them to that location. The scripts can be placed either directly in the extensions directory or in a subdirectory.
(Alternatively, clone this git repository into the extensions directory)
Project-specific extensions can be placed in a directory in your project instead, to make it easier to share them with teammates!
If you have written an extension that you think makes a great example or would be generally useful for others, please don't hesitate to open a pull request to have it added to this repository or to the list below!
Please run the linter to check for avoidable issues in the .js files:
npm install
npx eslint [your-extension.js]
Noteworthy extensions in other repositories:
- djedditt/tiled-to-gba-export
Export tilemaps to GBA source files - mapeditor/tiled-to-godot-export
Export tilemaps and tilesets to Godot format - samhocevar/tiled-pico8
Import/export to PICO-8 - ilius33/TiledToAngbandExport
Export to Angband.online - sergkr/tiled-bulk-animations
Efficiently setup bulk animations - eishiya/tiled-expand-autotile
Expand RPG Maker Autotile tilesets - eishiya/tiled-scripts
Assorted scripts - fordesoft/cliff-generator
Paint ground tiles, then instantly turn them into 9-slice cliffs. Most useful for top-down RPGs.
Also check out my starred Tiled extensions.