Update modules

This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-05-23 10:58:57 +07:00
parent 16e472f7ef
commit ffe1bf5049
5 changed files with 44 additions and 28 deletions

View File

@@ -1,9 +1,6 @@
if os.getenv("LOCAL_LUA_DEBUGGER_VSCODE")=="1" then
lldebugger=require('lldebugger')
lldebugger.start()
REQUEST_BREAK=lldebugger.requestBreak
else
REQUEST_BREAK=function()end
LLDEBUGGER=require('lldebugger')
LLDEBUGGER.start()
end
require 'funcs'
@@ -97,10 +94,9 @@ function love.draw()
love.graphics.push()
SCENE:render()
-- -- Grid system
-- local grid_width, grid_height = 40, 20
-- love.graphics.replaceTransform(GLOBAL_TRANSFORM)
-- love.graphics.setColor(1,1,1,0.5)
-- love.graphics.setLineWidth(1)
-- -- From 0 to X
@@ -112,6 +108,15 @@ function love.draw()
-- love.graphics.line(0, grid_height * iy, 640, grid_height * iy)
-- end
local x, y = GLOBAL_TRANSFORM:inverseTransformPoint(love.mouse.getPosition())
love.graphics.setColor(0, 0, 0, 0.8)
love.graphics.rectangle("fill", 5, 450, 115, 25)
drawText(string.format("X: %.1d; Y: %.1d", x, y), 10, 455, 110, "left")
love.graphics.setColor(1, 1, 1, 1)
love.graphics.setLineWidth(2)
love.graphics.rectangle("line", 0, 0, 640, 480)
love.graphics.pop()
end
@@ -361,7 +366,7 @@ function love.run()
end
function love.errorhandler(msg)
local msg = msg or "REV! BÀ ĂN CÁI TỜ TIN NHẮN LỖI RỒI À?!"
local msg = msg or "I don't know if mycophobia's real name is \"mycophobiatrophilusiania\" or not.\nBUT WHO ATE THE ERROR MESSAGE?! DTET_ENJOYER, DID YOU?\n"
local showScreenshot = false
local errorCopied = false
local enter_fullscreen = SETTINGS and SETTINGS["fullscreen"] or false