https://github.com/cammin/ldtktilesetexporter
An app that exports an LDtk project's tileset definition as an individual file
https://github.com/cammin/ldtktilesetexporter
Last synced: 3 months ago
JSON representation
An app that exports an LDtk project's tileset definition as an individual file
- Host: GitHub
- URL: https://github.com/cammin/ldtktilesetexporter
- Owner: Cammin
- License: mit
- Created: 2023-08-06T23:27:33.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-21T06:04:00.000Z (11 months ago)
- Last Synced: 2025-02-28T17:25:02.340Z (3 months ago)
- Language: C#
- Homepage:
- Size: 367 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LDtk Tileset Exporter
This aims to export individual files of tileset definitions from a project.
This is made for LDtkToUnity, but it should also be usable in any other engine/framework.## How to use
Execute from LDtk's custom command process. It's recommended to run after saving.
## Note
This app also gathers all rectangles used in entity/level field instances for convenience. This supports both project & separate levels.
because this additional data exists, this app writes an initial JSON object structured like this.`Rects` is an array of rectangles, and `Def` is the Tileset Definition:
```json
{
"Rects": []
"Def": null
}
```A rectangle is a simple object that is structured like this:
```json
{
"x": 0,
"y": 0,
"w": 0,
"h": 0,
}
```This app uses [Utf8Json](https://github.com/neuecc/Utf8Json) to deserialize/serialize json quickly.