From 9d06b5d50e3b23ebd70f8764baf6d25a356b2173 Mon Sep 17 00:00:00 2001 From: yuki Date: Tue, 11 Nov 2025 22:38:50 -0300 Subject: [PATCH] draw debug text outside of camera --- obj/Room.lua | 1 + rooms/Stage.lua | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/obj/Room.lua b/obj/Room.lua index 056c0c1..9ebdda6 100644 --- a/obj/Room.lua +++ b/obj/Room.lua @@ -33,6 +33,7 @@ function Room:draw() camera:attach(0, 0, gw, gh) self:canvasDraw() camera:detach() + if DEBUG then love.graphics.print('DEBUG', 2, 2) end love.graphics.setCanvas() love.graphics.setColor(255, 255, 255, 255) diff --git a/rooms/Stage.lua b/rooms/Stage.lua index 44dbdce..20102dd 100644 --- a/rooms/Stage.lua +++ b/rooms/Stage.lua @@ -13,7 +13,6 @@ end function Stage:canvasDraw() Stage.super.canvasDraw(self) - if DEBUG then love.graphics.print('DEBUG', 2, 2) end end return Stage