From e3634a80ad29221b9fc0cc60a543027074096dd1 Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Thu, 12 Mar 2026 16:41:55 -0400 Subject: Move the UI rendering outside of the canvas --- main.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'main.lua') diff --git a/main.lua b/main.lua index bbc2689..ed1a48a 100644 --- a/main.lua +++ b/main.lua @@ -48,14 +48,6 @@ function love.draw(dt) ground2:draw() player.box:draw() - im.begin_step() - - fire_event(scn.on_ui) - - im.draw() - - im.end_step() - -- TODO: Take care of weird displays lg.setCanvas() local scr_width, scr_height = lg.getDimensions() @@ -67,6 +59,14 @@ function love.draw(dt) WindowScale, WindowScale, SCR_WIDTH / 2, SCR_HEIGHT / 2) + im.begin_step() + + fire_event(scn.on_ui) + + im.draw() + + im.end_step() + lg.print(tostring(love.timer.getFPS())) lg.print("left "..tostring(player.box:touching_left()), 0, 20) lg.print("right "..tostring(player.box:touching_right()), 0, 40) -- cgit v1.3-2-g0d8e