Code Monkey home page Code Monkey logo

tiled-inflate-plugin's Introduction

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.

tiled-inflate-plugin's People

Contributors

bjorn avatar obiot avatar

Watchers

 avatar  avatar  avatar

Forkers

bjorn

tiled-inflate-plugin's Issues

add support for zstd compressed maps

While zstd support is pretty easy to add, it kind of defeat the purpose of using compressed maps to save place as including a zstd javascript decompression library (such as https://github.com/OneIdentity/zstd-js) will increase the plugin size to more than 2.5MB.

So unless there is a massive request to add support for zstd, zlib and gzip are a way better option for a javascript project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.