Planimeter / game-engine-2d

Planimeter Game Engine 2D - LÖVE-based game engine for Lua
https://github.com/Planimeter/game-engine-2d/wiki
MIT License
736 stars 74 forks source link

Added support for Tiled map layers that use multiple tilesets #101

Closed GamerGambit closed 4 years ago

GamerGambit commented 4 years ago

Tiled map layers that have multiple tilesets are now properly supported. Before, the first tileset that was parsed was the one that was used for all tiles in the layer.

andrewmcwatters commented 4 years ago

kk, I'm gonna review this a bit more tonight and aim to merge, but it lgtm at a glance.

GamerGambit commented 4 years ago

That's right. map.layer doesnt own or reference tilesets anymore since map.layer.initializeTiles handles the sprite batching although I'm not sure if this is a good or bad idea.