Just wanted to share that I made a fully functional API for reading tiled map files, and typed everything in lua annotations. Still restricted to orthogonal maps only
I'm posting here so it gets tagged if anyone ever searchs for it
Just wanted to share that I made a fully functional API for reading tiled map files, and typed everything in lua annotations. Still restricted to orthogonal maps only
I'm posting here so it gets tagged if anyone ever searchs for it
Just got this working after considering getting started with PlayDate then looking for something just like this, not finding it, then stopping. Had to do a little guesswork as to how it should work, but figured it out by looking at your test map export and making sure my map had all the same data. Got collision working quickly as well, since you'd already set up the walls. Thanks for making this!
Thanks! But hey, I just made an update there. the way I made the collisions was actually not optimal, using addWallSprites will yield a single rectangle which is a must for optimization when actually running on device
I als o added a method called getTileImageByGid so the image of the char can be retrieved directly from the object GID
Oh nice - I'll re-import it. Thanks!