martinlindhe / php-tiled-tmx
Library for reading Tiled .tmx map files and rendering as JSON
Installs: 4 664
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: >=5.4.0
Requires (Dev)
- martinlindhe/php-debughelper: ~0.1
- phpunit/phpunit: ~4.6
- squizlabs/php_codesniffer: ~2.0
README
Library for reading Tiled .tmx map files.
Example:
use TiledTmx\JsonMapWriter as Writer; use TiledTmx\Parser; $map = (new Parser)->parseFile('./test/data/testMap1.tmx'); echo Writer::render($map);
The Tiled Map Editor can be downloaded at http://www.mapeditor.org/
The Tiled TMX format is documented here: https://github.com/bjorn/tiled/wiki/TMX-Map-Format
Usage
To improve network performance, make sure that your web server has enabled gzip compression for the generated output.