From a55aa6a14bcd4f788daa22322690f467ce0b8b91 Mon Sep 17 00:00:00 2001 From: Justus Wolff Date: Sun, 15 Feb 2026 11:31:05 +0100 Subject: [PATCH] fix camera --- src/main.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main.lua b/src/main.lua index ac4cad0..33d9123 100644 --- a/src/main.lua +++ b/src/main.lua @@ -181,18 +181,18 @@ local function newdesign() if keys.getName(event[2]) == "e" and currentfloor > 1 then -- go down currentfloor = currentfloor - 1 end - if keys.getName(event[2]) == "w" and camy > 1 then -- pan up - camy = camy - 1 - end - if keys.getName(event[2]) == "s" and camy < dimensions["z"] then -- pan down + if keys.getName(event[2]) == "w" and camy < dimensions["z"] then -- pan up camy = camy + 1 end - if keys.getName(event[2]) == "a" and camx > 1 then -- pan left - camx = camx - 1 + if keys.getName(event[2]) == "s" and camy > 1 then -- pan down + camy = camy - 1 end - if keys.getName(event[2]) == "d" and camx < dimensions["x"] then -- pan right + if keys.getName(event[2]) == "a" and camx < dimensions["x"] then -- pan left camx = camx + 1 end + if keys.getName(event[2]) == "d" and camx > 1 then -- pan right + camx = camx - 1 + end end end end