Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

tilehub/jtm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JTM

JTM is a derivative of the TMX map format (http://doc.mapeditor.org/en/latest/reference/tmx-map-format/).

Installation

To install type:

npm install https://github.com/tilehub/jtm --save

Usage

to use the package import it by typing:

let jtm = require('jtm').JTM

and then instanciate it with:

let converter = new jtm()

TMXJsonToJTM

Converts TMX Json Data into JTM Data. If a Tileset is integrated into the TMX Data, it is extracted.

tmx: is the TMX Json Data

tsx: is a js Object with every Tileset filename as the key and it's content as value

return: TMXJsonToJTM() returns a list with tmx on index 0 and tsx on index 1

JTMToTMXJson

Converts JTM Data into TMX Json Data.

tmx: is the TMX Json Data

tsx: is a js Object with every Tileset filename as the key and it's content as value

return: JTMToTMXJson() returns a list with tmx on index 0 and tsx on index 1

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published