Kadoba / Advanced-Tiled-Loader

Imports Tiled maps into Lua for the LÖVE game engine. (NO LONGER IN DEVELOPMENT)
183 stars 30 forks source link

Added ellipses, change how ordering is done for tiled objects and fixed some bugs. #28

Open xenodora opened 11 years ago

xenodora commented 11 years ago

Changed the sort order of tile objects to use their bottom edge. The y coordinate of the bottom edge will also be modified by the object's 'z' property (or the tile's 'z' property if not found). 'z' is effectively how many pixels above the ground the tile object's bottom edge is.

These changes are intended to allow the use of Tiled to visually place objects and have the draw order done properly when other game objects are added to the layer.

Added support for loading, saving and displaying of ellipses. Ellipses are new to Tiled 0.9.0 (found in Tiled's Github repository). Their format is like this:

  <object x="320" y="576" width="32" height="32">
   <ellipse/>
  </object>

Some bugfixes: