https://github.com/thecodingmachine/map-optimizer
A tool to automatically optimize a Tiled map for usage in Phaser 3
https://github.com/thecodingmachine/map-optimizer
Last synced: 19 days ago
JSON representation
A tool to automatically optimize a Tiled map for usage in Phaser 3
- Host: GitHub
- URL: https://github.com/thecodingmachine/map-optimizer
- Owner: thecodingmachine
- Created: 2020-06-25T21:16:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-05T02:30:46.000Z (about 3 years ago)
- Last Synced: 2025-10-19T11:49:40.367Z (5 months ago)
- Language: JavaScript
- Size: 143 KB
- Stars: 8
- Watchers: 6
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tiled map optimizer
This project contains a simple command line application (and a GitHub Action) that:
- takes in input a Tiled map
- scans all textures
- [extrude the textures](https://github.com/sporadic-labs/tile-extruder)
- rewrites the map
## Usage
### CLI usage
The map must be in Tiled JSON format.
```
$ bin/tile-optimizer -i my_map.json -o dist/
```
Parameters:
- `-i`: input file (the name of the map file in Tiled JSON format)
- `-o`: output directory. The JSON map file and all textures will be written back here
Limitations:
Tiles must be embedded in the map. This tool cannot read maps in TSX format.