SamuKata
Barry's Dev Hell
Barry's Dev Hell

patreon


Subpixel Camera Project Files

Remove pixel snapping / jitter from your pixel art game with this subpixel fix!

Pixel snapping occurs in pixel art games that use upscaling and smooth / lerp the camera.

To see the difference, detach the script on the camera in the Game.tscn scene, then attach the camera.gd script in its place to see how bad the pixel snapping is.

This fix works by getting an offset which is the distance between the camera's subpixel position and the nearest pixel perfect position. Then we move the whole screen by this offset which fixes pixel snapping.

Subpixel Camera Project Files

More Creators