go-tiled icon indicating copy to clipboard operation
go-tiled copied to clipboard

ImageLayer & ObjectGroup Offset not support float value

Open SunneeYang opened this issue 2 years ago • 4 comments

Load failed,"strconv.ParseInt: parsing "15.52": invalid syntax" <imagelayer id="20" name="bg" opacity="0.61" offsetx="15.52" offsety="30.18"/>

SunneeYang avatar Jun 25 '23 10:06 SunneeYang

Looking at spec it says that offsetx and offsety are in pixels, I don't think pixels can be as float... 🤔 attels

lafriks avatar Jul 05 '23 11:07 lafriks

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.

distantforest1 avatar Oct 17 '23 12:10 distantforest1

Looks like than will need to do breaking change and change to float then...

lafriks avatar Oct 17 '23 21:10 lafriks

PR is welcome :)

lafriks avatar Oct 17 '23 21:10 lafriks