a melonJS plugin to enable loading and parsing of compressed Tiled maps
npm install @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:
``JavaScript
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 :
* Forums: with melonJS 2 we moved to a new discourse forum, but we can still also find the previous one here
* Chat: come and chat with us on discord
* we tried to keep our wikipage up-to-date with useful links, tutorials, and anything related melonJS.