11-03-2022, 08:07 AM
(11-03-2022, 03:35 AM)megamarc Wrote: Hi,
I've just pushed release 2.13 o GitHub that implements per-tile palette like in classic 2D chipsets. Up to 8 global palettes can be set with TLN_SetGlobalPalette(). Tile palette index is set in Tile.palette property.
By default global palettes are unset (NULL) and all tiles use palette 0. Having corresponding global palette set to NULL makes the renderer pick the tileset's own palette like before, so it doesn't break compatibility. Only when palette selector bits in Tile struct point to a not-NULL global palette, is picked over tileset's default palette.
https://github.com/megamarc/Tilengine/co...0cd570f381
Hi, thanks a lot for implementing this feature! It was one of the features that Tilengine missed, but now it's even closer to how consoles works!
But how can I define which palette is used by which tile on the TMX Tilemap please? Thanks a lot for your answer!