Skip to content

4.2.2

Latest

Choose a tag to compare

@RafaelBarbosatec RafaelBarbosatec released this 29 Nov 14:34
44c461d

4.2.2

Fixed

  • Dark lines between tiles on devices and platforms where tile edges land on fractional pixels (most visible on Linux desktop, and with the fractional zoom from getZoomFromMaxVisibleTile). TileLayerComponent is now pixelPerfect by default: antialiasing is off for the layer — two half-transparent edges used to leave ~25% of the background showing through — and the layer translation is rounded to whole device pixels, so the grid stops crawling as the camera moves. Turn it off per layer with layer.pixelPerfect = false.

  • Coloured one-pixel lines on tileset atlases. Tiles were being stretched by the bleeding-pixel hack, which also stretched their source rectangle; on a fractional zoom the sample on the tile edge rounded into the next cell and painted the neighbour's art. TileComponent now draws the sprite on its nominal cell (the expansion only affects component bounds) and trims half a texel from the source, so the sample never leaves the cell. This is why the artifact depended on the window size: the zoom decides where the edges land.

Full changelog

https://github.com/RafaelBarbosatec/bonfire/blob/master/CHANGELOG.md