Put VSCode debug line in correct function
parent
cfb8b267d4
commit
c3250c71fa
4
main.lua
4
main.lua
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue