Skip to content

v0.15.0

Latest

Choose a tag to compare

@lafriks lafriks released this 10 Jul 15:10

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/Class attributes on Object, TilesetTile, and WangSet now consistently fall back to each other regardless of which the source file uses by @lafriks in 7db7f2b (Fixes #98)
  • OffsetX/OffsetY on Layer, ImageLayer, ObjectGroup, and Group changed from int to float64, 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.Opacity by @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/Y changed from int to float64
  • Properties.Get now returns *Property instead of []string; use the new Properties.GetAll for the previous behavior
  • NewHexColor/ParseHexColor now return *HexColor instead of HexColor, matching how every field in the package already stores colors
  • Data.DataTiles changed from []*DataTile to []DataTile

📦 Dependencies

Full Changelog: v0.14.0...v0.15.0