melonJS Tiled inflate plugin
a melonJS plugin to enable loading and parsing of zlib and gzip compressed Tiled maps
zstd compressed maps are not supported, see here for more details Note: this plugin requires melonJS version 15.2.1 or higher
Installation
$ [sudo] npm install @melonjs/tiled-inflate-plugin
Then import and instantiante the plugin in your project. For example:
import { plugin } from 'melonjs';
import { TiledInflatePlugin } from '@melonjs/tiled-inflate-plugin';
// register the plugin
plugin.register(TiledInflatePlugin);
Once successfully registered, compressed maps will automatically be loaded and parsed by melonJS, no further actions are required.
Questions, need help ?
If you need technical support, you can contact us through the following channels :