Loading Tiled maps
Posted: Thu Jul 30, 2015 4:33 am
So, I'm using this to load Tiled maps: https://love2d.org/wiki/TiledMapLoader
But the result is always messy... Is that code incompatible with the actual version of Tiled?
This is what i see on Tiled:
This is what i see in-game:
The only thing i modified on the code was adding a mapPixel function to interpret the blue from the sprites as transparency, this was working pretty well on another map, but on that one it's also messy, i don't know why...
Here is my slightly modified tmx loader: http://pastebin.com/fcAWFNTa
Thanks in advance.
But the result is always messy... Is that code incompatible with the actual version of Tiled?
This is what i see on Tiled:
This is what i see in-game:
The only thing i modified on the code was adding a mapPixel function to interpret the blue from the sprites as transparency, this was working pretty well on another map, but on that one it's also messy, i don't know why...
Here is my slightly modified tmx loader: http://pastebin.com/fcAWFNTa
Thanks in advance.