go-tiled
go-tiled copied to clipboard
ImageLayer & ObjectGroup Offset not support float value
Load failed,"strconv.ParseInt: parsing "15.52": invalid syntax"
<imagelayer id="20" name="bg" opacity="0.61" offsetx="15.52" offsety="30.18"/>
Looking at spec it says that offsetx and offsety are in pixels, I don't think pixels can be as float... 🤔
Also getting this issue. Some engines do support subpixels, this TMX is also straight from tiled so I believe it should be supported as well.
Looks like than will need to do breaking change and change to float then...
PR is welcome :)