From c3250c71fa234bf1f08bf62bf4474b87ee87380e Mon Sep 17 00:00:00 2001 From: Tyler Scott Date: Sat, 5 Feb 2022 08:30:01 +0700 Subject: [PATCH] Put VSCode debug line in correct function --- main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index d75610d..546a4df 100644 --- a/main.lua +++ b/main.lua @@ -2,8 +2,6 @@ local tau = math.pi * 2 local game = {} local function load_level(level, bubble_diameter, row_gap) - if arg[#arg] == "debug" then require("lldebugger").start() end - local slots = {} local bubble_radius = bubble_diameter / 2 @@ -50,6 +48,8 @@ local function find_nearest_slot(x, y) end function love.load(arg) + if arg[#arg] == "debug" then require("lldebugger").start() end + game.window_width, game.window_height = love.graphics.getDimensions() game.paused = false