@melonjs/tiled-inflate-plugin
v1.2.0
Published
a melonJS plugin to enable loading and parsing of compressed Tiled maps
Maintainers
Readme
@melonjs/tiled-inflate-plugin
A melonJS plugin to enable loading and parsing of compressed Tiled maps.
Supports gzip, zlib, and zstd compressed tile layer data.
Installation
npm install @melonjs/tiled-inflate-plugin
# or
pnpm add @melonjs/tiled-inflate-pluginUsage
import { plugin } from "melonjs";
import { TiledInflatePlugin } from "@melonjs/tiled-inflate-plugin";
// register the plugin before loading any compressed Tiled maps
plugin.register(TiledInflatePlugin);Once registered, melonJS will automatically decompress compressed tile layer data when loading Tiled maps.
Supported Compression Formats
| Format | Supported | Library | |--------|-----------|---------| | gzip | Yes | pako | | zlib | Yes | pako | | zstd | Yes | fzstd |
