Any succes with LDtk?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
DemSquirrel
Prole
Posts: 3
Joined: Sun Aug 23, 2015 5:53 pm
Location: Denmark

Any succes with LDtk?

Post by DemSquirrel »

I was wondering if there was an easy way to use exported maps from https://ldtk.io/ in love2d?

It's just json but it would be nice if there were a simple library or something to use with it.
User avatar
Tabaqui
Prole
Posts: 34
Joined: Tue Mar 24, 2020 2:47 pm
Location: Italy

Re: Any succes with LDtk?

Post by Tabaqui »

Hi! In the attachments you can find a library that can read/write JSON files pretty easily.

PS: I'm not the author of the library :crazy:
Attachments
JSON.lua
(63.44 KiB) Downloaded 375 times
HamdyElzonqali
Prole
Posts: 1
Joined: Sat Mar 13, 2021 7:20 am

Re: Any succes with LDtk?

Post by HamdyElzonqali »

If anybody is still interested, I created this.
https://github.com/HamdyElzonqali/ldtk-love/
Last edited by HamdyElzonqali on Sat Apr 09, 2022 12:36 pm, edited 1 time in total.
tducasse
Prole
Posts: 2
Joined: Tue Jul 13, 2021 3:45 am

Re: Any succes with LDtk?

Post by tducasse »

Thanks Hamdy, this looks great! I was trying to choose between Tiled and Ogmo, and I started writing a library to parse Ogmo maps, but then I discovered LDtk, and I'm happy to see that there's already a Love library for it!

Is there anything that you can think of that didn't work as you wanted it to?
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests