--- a/game/main.lua +++ b/game/main.lua @@ -161,10 +161,7 @@ function drawCollision() love.graphics.setColor(0, 1, 0, .5) for _, body in pairs(world:getBodies()) do - if not body:isActive() then - goto continue - end - for _, fixture in pairs(body:getFixtures()) do + for _, fixture in pairs(body:isActive() and body:getFixtures() or {}) do local shape = fixture:getShape() if shape:typeOf("CircleShape") then @@ -176,7 +173,6 @@ love.graphics.line(body:getWorldPoints(shape:getPoints())) end end - ::continue:: end love.graphics.setColor(1, 1, 1, 1) end --- a/game/conf.lua +++ b/game/conf.lua @@ -18,7 +18,7 @@ t.window.resizable = true -- Let the window be user-resizable (boolean) t.window.minwidth = 1280 -- Minimum window width if the window is resizable (number) t.window.minheight = 720 -- Minimum window height if the window is resizable (number) - t.window.fullscreen = true -- Enable fullscreen (boolean) + t.window.fullscreen = false -- Enable fullscreen (boolean) t.window.fullscreentype = "desktop" -- Choose between "desktop" fullscreen or "exclusive" fullscreen mode (string) t.window.vsync = 1 -- Vertical sync mode (number) t.window.msaa = 0 -- The number of samples to use with multi-sampled antialiasing (number) --- a/game/ui.lua +++ b/game/ui.lua @@ -106,13 +106,6 @@ self.menus.credits.active = state end; }) - main:add({ - select = true; - textFunc = function() return l.main.exit end; - onenter = function() - love.event.quit() - end - }) main.outlineSelection = true local play = Menu(input, self.font)