Closed joey-simon closed 5 months ago
Didn't realise this was a known issue when using drawAtlas
on web. Setting useAtlas = false
on the TiledComponent
fixes this (at least until drawAtlas
gets fixed for web).
This does cause lines/gaps between tiles on web, to fix this set isAntiAlias = false
on the TiledComponent
Current bug behaviour
Tiles appear to have some anti-aliasing or filtering applied when running on flutter web:
Expected behaviour
Same project running on windows (window size same as web screenshot):
Steps to reproduce
1) Set camera with a fixed resolution that matches the width and height of the tilemap. Also set
viewFinder.anchor = Anchor.topLeft
on the camera. 2) Load the tilemap usingTiledComponent.load
and thenadd
it 3) Run withflutter run -d chrome
Flutter doctor output
More environment information
More information
I tried disabling anti-aliasing and filtering in the
layerPaintFactory
, but that didn't change anything: