I am making a replica of FF3 for learning purposes. The tiles are 15x15, therefore the map looks very small on practically any device. I thought one simple solution would be to set the zoom value of camera as : camera.zoom = scaleFactorOnMap.length;
, where scaleFactor is a vector2 with some logic.
However, I am experiencing white horizontal and vertical lines when moving. It is worse on an emulator, bad on windows/chrome, slightly better on my real mobile phone.
I have read around that it could be due to this "anti-aliasing bug", which is known since 2018 and appears not to be going anywhere. Since there are possibly many ways to handle my use case, what would be the best workaround here? Is there another (better) way to make the map, collisions, character bigger without the zoom property? Or is it something wrong with the spritesheets, in that case what defines good sprites? Screenshot on windows of the bug in game
I have tried a few alternatives:
This bug is going away with Impeller, but since that isn't out on all platforms yet one has to resort to workarounds.
There is a FixedIntegerResolutionViewport
which removes the need for rounding the pixels, which is what is causing this in Flutter.
This is the issue where it has been discussed: https://github.com/flame-engine/flame/issues/1152