Loading LDtk files
LDtk JSON files can be easily loaded in most common languages and frameworks. If your favorite one isn’t listed below, don’t worry, we’ve got your back.
- LDtk Unity by Cammin
A Unity package for importing/deserializing LDtk json data into C# structs, but also includes some features to generate Unity tilemaps with identical art and defined collisions, and also instantiates entities with proper field data filled in.
- Monogame by IrishBruse
A C# Monogame renderer.
- QuickType loader generated by QuickType
Load and parse LDtk files, with full types definitions. Automatically generated from Json Schema using QuickType.
- C++ Loader by Madour
Use it to load LDtk levels in your game and access any data you need via the API.
- Godot by JoshLee0915
An import plugin that allows Godot to treat
.ldtkfiles like native resources and uses them to create Godot scenes.
- Godot by lrgilbert
Basic GDscript for importing LDtk files into the Godot game engine.
Is your favorite framework or language missing?
Using the “super easy” method
Enable the “Export level layers as PNG” and just load simple images in your game (see how it works).
QuickType can generate a full JSON parser for many languages including Ruby, Dart, Objective-C etc. It’s based on the official JSON schema, so it’s always guaranteed to work even with latest version (see how it works).
Writing your own JSON parser
LDtk Json format was specifically designed to be easy to parse and is well documented. Also, if you just want to try LDtk in your favorite framework, and it supports Tiled TMX format, you may also use the Tiled export option.
If you want your work to be listed here, please use this GitHub issue.