Meadow-Guarder-old2
Meadow-Guarder-old2 copied to clipboard
Aliasing issues with items
Items or anything at an angle will appear horribly aliased and interpolated. The canvas is not scaled correctly in relation to some screens (like mine)
A very simple solution is to simply scale the canvas by the device pixel ratio (dpr):
DPR = 1;
if (window.devicePixelRatio) {
DPR = window.devicePixelRatio;
}
CTX.width = window.innerWidth*DPR;
CTX.height = window.innerHeight*DPR;
CTX.scale(DPR, DPR);
This will fix all interpolation issues except for things being drawn at floating-point locations. Also, it scales the canvas correctly to fit the screen.
Items in Mountain Guarder
also fix layers
also fix layers
That's not related to this issue. Please create a new issue for this issue.
it is tho
i dont have the energy to create another issue atm so