GithubHelp home page GithubHelp logo

tiledexportextensions's Introduction

TiledExportExtensions

A collection of Tiled extensions to assist with exporting Tiled map data.

Extensions

The following is a list of the extensions included in this pack:

  1. Embed JSON Map Format
  2. Minified JSON Map Format

Embed JSON Map Format

The Embed JSON Map Format Tiled plugin will embed all images directly in the JSON format, Base64 encoded, as *.embed.json files. It will add the image data to a base64 encoded data URI scheme imagedata property, along add the size of the image to imagesize.

Before

{
    "image": "desert.png"
}

After

{
    "image": "desert.png",
    "imagedata": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
    "imagesize": 37830
}

Minified JSON Map Format

The Minified JSON Map Format Tiled plugin will export minified JSON files *.min.json, to decrease the output file size by removing the whitespace. This can already be accomplished by using Tiled's "Minimize output", but having the explicit file format allows you force minification if desired, despite Tiled's settings.

Before

{ "compressionlevel":-1,
 "height":40,
 "infinite":false,
 "layers":[
        {
         "data":[...

After

{"compressionlevel":-1,"height":40,"infinite":false,"layers":[{"data":[...

Installation

To install the extensions...

  1. Open Tiled and go to Edit > Preferences > Plugins and click the Open button to open the extensions directory.

  2. Download

  3. Extract the files to your extensions directory. The scripts can be directly in the extensions directory or a subdirectory. Alternatively, clone this git repository into the extensions directory:

    • Windows C:/Users/%USERNAME%/AppData/Local/Tiled/extensions/
    • macOS ~/Library/Preferences/Tiled/extensions/
    • Linux ~/.config/tiled/extensions/
  4. See the script itself for specific plugin usage instructions

License

Unless stated otherwise, all works are:

... and licensed under:

tiledexportextensions's People

Contributors

robloach avatar

Stargazers

Thorbjørn Lindeijer avatar

Watchers

 avatar  avatar

tiledexportextensions's Issues

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.