From 779fc71a8be224c22c7e650983d7af4c06854138 Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Sun, 5 Apr 2026 10:15:18 -0400 Subject: fix: round camera position when drawing If we don't round the camera position, it can cause jittering since things are no longer drawn at a rounded position. --- src/camera.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/camera.lua b/src/camera.lua index 3283c0c..31bfe9e 100644 --- a/src/camera.lua +++ b/src/camera.lua @@ -36,6 +36,6 @@ function use_camera_transform() local w, h = SCR_WIDTH / 2, SCR_HEIGHT / 2 lg.scale(active_cam.zoom) lg.translate( - -active_cam.realx + w / active_cam.zoom, - -active_cam.realy + h / active_cam.zoom) + round(-active_cam.realx + w / active_cam.zoom), + round(-active_cam.realy + h / active_cam.zoom)) end -- cgit v1.3-2-g0d8e