LDTK2Defold - Editor Extension for generating Defold collections from LDTK project

Introduction

LDTK is a modern 2D level editor with support for advanced features like rule-based tilemaps, autotiling and entities. LDTK2Defold is a Defold editor extension that converts an LDTK project to Defold’s resources - tilesources, tilemaps and collections in just a single click.

Features

  • Support for generating tilesources and tilemaps from the LDTK project.
  • Support for creating collections with entities and generated tilesets.
  • Support for LDTK entity and level fields by exporting them as a Lua module.

Usage

Refer to the Usage section in README on project’s giithub.

Get ldtk2defold

Get ldtk2defold on the project’s github page : GitHub - TheKing0x9/ldtk2defold: Converts LDTK projects to Defold Collections

14 Likes

This is great! :heart_eyes:

You can submit this also to Defold Asset Portal! :star_struck:

2 Likes

Nice, good job. I remember LDTK having huge .json files for the output which made me worried about using it in a bigger projects, I have no idea if that changed over the years.

2 Likes

It still produces large JSON files, but most of it is irrelevant to the implementation, making the conversion performance good. For instance, the included gridvania sample has approximately 21 levels, but only takes about one to two seconds to convert on a mid-tier machine. If you want, you can also split the project files level-wise and have smaller JSON files.

2 Likes