Repository navigation
What's Changed
🚀 New Features
- Add isometric map rendering support, including correct tile-object bottom-center alignment and projection (based on work from @sduncan56 in #100) by @lafriks in d63cbf4
- Add hexagonal map rendering support, supporting both pointy-top and flat-top layouts with arbitrary hex side length (based on work from @AndreRenaud in #76) by @lafriks in 8a0c582
- Add support for staggered map rendering by @lafriks in 6570830 (Fixes #84)
- Add support for reading nested class-typed custom properties (
Properties.Get,Property.Properties) by @lafriks in b28a3bd (Fixes #102)
🐛 Bug Fixes
- Implement correct GID tile flipping, including the previously unhandled hexagonal 120° rotation flag, which could previously resolve to a corrupted tile ID even on non-hexagonal maps by @lafriks in e93dceb (Fixes #33)
Type/Classattributes onObject,TilesetTile, andWangSetnow consistently fall back to each other regardless of which the source file uses by @lafriks in 7db7f2b (Fixes #98)OffsetX/OffsetYonLayer,ImageLayer,ObjectGroup, andGroupchanged frominttofloat64, fixing load failures on files with fractional offsets by @lafriks in 80defb4 (Fixes #77)- Set all default values as defined in the TMX spec — including layer parallax factors, object group draw order, tile/Wang color probability, text color, and object opacity — several of which previously defaulted incorrectly (e.g. parallax factors defaulting to 0 instead of 1) by @lafriks in 5d965c9 (Fixes #29)
- Add missing fields defined in the TMX spec:
Map.Infinite,Map.NextLayerID,Map.ParallaxOriginX/Y,Layer.Mode,Tileset.ObjectAlignment/TileRenderSize/FillMode/Grid/Transformations,Object.Opacityby @lafriks in a4c348b
⚡ Performance
- Optimize map loading to reduce allocations and improve load speed by ~39% by @lafriks in 62273e1
- Further optimize tile data loading (CSV/base64/XML tile decoding) by @lafriks in df0fcda
⚠️ Breaking Changes
Layer/ImageLayer/ObjectGroup/Group.OffsetX/Ychanged frominttofloat64Properties.Getnow returns*Propertyinstead of[]string; use the newProperties.GetAllfor the previous behaviorNewHexColor/ParseHexColornow return*HexColorinstead ofHexColor, matching how every field in the package already stores colorsData.DataTileschanged from[]*DataTileto[]DataTile
📦 Dependencies
- Bump golang.org/x/image from 0.18.0 to 0.38.0 by @dependabot in #103
- Bump golang.org/x/image from 0.38.0 to 0.41.0 by @dependabot in #104
Full Changelog: v0.14.0...v0.15.0