Skip to content

a plugin to allow the loading and parsing of Tiled compressed (gzip/zlib) maps in melonJS

License

Notifications You must be signed in to change notification settings

melonjs/tiled-inflate-plugin

Repository files navigation

melonJS Tiled inflate plugin

melonJS Logo

License: MIT

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 :

  • 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.