Put VSCode debug line in correct function

main
Tyler Scott 2022-02-05 08:30:01 +07:00
parent cfb8b267d4
commit c3250c71fa
1 changed files with 2 additions and 2 deletions

View File

@ -2,8 +2,6 @@ local tau = math.pi * 2
local game = {} local game = {}
local function load_level(level, bubble_diameter, row_gap) local function load_level(level, bubble_diameter, row_gap)
if arg[#arg] == "debug" then require("lldebugger").start() end
local slots = {} local slots = {}
local bubble_radius = bubble_diameter / 2 local bubble_radius = bubble_diameter / 2
@ -50,6 +48,8 @@ local function find_nearest_slot(x, y)
end end
function love.load(arg) function love.load(arg)
if arg[#arg] == "debug" then require("lldebugger").start() end
game.window_width, game.window_height = love.graphics.getDimensions() game.window_width, game.window_height = love.graphics.getDimensions()
game.paused = false game.paused = false