This project is intended to fill a need for a high-quality tile editor that can be used without requiring a download. As such, it is designed to run in any modern browser and has a lightweight feature set. Data exports are intended to be compatible with Tiled's format.
The latest version of the tile editor can be used without local installation here.
This project can not be run directly after being downloaded because it uses ECMAScript features like import
/ export
that require a web server. One simple solution if you would like to run this code yourself is to use an IDE's preview feature. Microsoft's Live Preview extension for VS Code is a good example of this option. Alternatively, if you are running a web server, you can place this entire Git repository inside the directory you serve content from.
Once you have access to the tile editor, usage is fairly straightforward:
- Start by adding a tileset.
- Presss
[Add tileset]
. - Upload the spritesheet you would like to use.
- Enter the dimensions of the tiles in pixels.
- Presss
- Add layers to the scene.
- Press
[Add layer]
. - Enter the name of the layer.
- Press
- Select a layer to draw on. The selected layer will be highlighted green.
- Select a tile from the tileset image to add to the scene.
- Use the pen tool to draw your pattern in the scene.
- Only the selected layer will be modified.
- You can use the eraser tool to undo any mistakes.
- You can use the E key to easily select the eraser.
- You can use the P key to easily select the pen.
This tile editor is intended to be a lightweight solution for creating simple tile maps. It is not intended for large-scale use: a downloaded app would be better-suited for providing advanced functionality. This tile editor's features include:
- Ability to draw or erase single tiles
- Ability to upload a single tileset for creating a tile map
- Ability to add as many map layers as needed
- Ability to show/ hide individual layers
- Ability to remove layers
- Ability to export tilemap
- Tileset image included (Base64 encoded)
- Ability to re-import a tilemap for updates
- Ability to resize the map as needed
More features will be added to the tile editor as time allows. Currently planned are:
- Layer reordering for easily changing how layers overlap
- A bucket tool for instantaneously adding a given tile across a swath of the scene
- Undo/ redo buttons for fixing larger mistakes
If there are other changes you would like to see, please feel free to submit an issue explaining the feature.