ponywolf / ponytiled

PonyTiled a simple Tiled Map Loader for Corona SDK
MIT License
83 stars 22 forks source link

Directory for tiled layer #15

Closed agershun closed 6 years ago

agershun commented 6 years ago

I tried to use the library for tiled layer, but found that it can not find image files.

After some research I found that ponytiled doesnot specify directory name.

I fixed it in the file ponytiled.lua near the line 153 with dir ... gid:

local image = sheet and display.newImage(objectGroup, sheet, gid, 0, 0) 
      or display.newImage(objectGroup, dir .. gid, 0, 0)
ldurniat commented 6 years ago

Hi @agershun ,

I have noticed this also. I proposed simple solution. See Incorrect path for tiles on Tile Layer

Have a nice day:)

ldurniat

agershun commented 6 years ago

Ops.. Sorry for duplication. Thank you!

superqix commented 6 years ago

Fixed with your solution. Sorry for the delay... I almost never use tile-sets.