mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Disable debug code
This commit is contained in:
10
main.lua
10
main.lua
@@ -102,10 +102,10 @@ function love.draw()
|
|||||||
-- love.graphics.line(0, grid_height * iy, 640, grid_height * iy)
|
-- love.graphics.line(0, grid_height * iy, 640, grid_height * iy)
|
||||||
-- end
|
-- end
|
||||||
|
|
||||||
local x, y = GLOBAL_TRANSFORM:inverseTransformPoint(love.mouse.getPosition())
|
-- local x, y = GLOBAL_TRANSFORM:inverseTransformPoint(love.mouse.getPosition())
|
||||||
love.graphics.setColor(0, 0, 0, 0.8)
|
-- love.graphics.setColor(0, 0, 0, 0.8)
|
||||||
love.graphics.rectangle("fill", 5, 450, 115, 25)
|
-- love.graphics.rectangle("fill", 5, 450, 115, 25)
|
||||||
drawText(string.format("X: %.1d; Y: %.1d", x, y), 10, 455, 110, "left")
|
-- drawText(string.format("X: %.1d; Y: %.1d", x, y), 10, 455, 110, "left")
|
||||||
|
|
||||||
-- love.graphics.setColor(1, 1, 1, 1)
|
-- love.graphics.setColor(1, 1, 1, 1)
|
||||||
-- love.graphics.setLineWidth(2)
|
-- love.graphics.setLineWidth(2)
|
||||||
@@ -157,7 +157,7 @@ function love.keypressed(key, scancode)
|
|||||||
elseif scancode == "f2" and SCENE.title ~= "Input Config" and SCENE.title ~= "Game" then
|
elseif scancode == "f2" and SCENE.title ~= "Input Config" and SCENE.title ~= "Game" then
|
||||||
SCENE = InputConfigScene()
|
SCENE = InputConfigScene()
|
||||||
elseif scancode == "f12" then LLDEBUGGER.requestBreak()
|
elseif scancode == "f12" then LLDEBUGGER.requestBreak()
|
||||||
elseif scancode == "f11" then SETTINGS.firstTime = true
|
-- elseif scancode == "f11" then SETTINGS.firstTime = true
|
||||||
-- function keys are reserved
|
-- function keys are reserved
|
||||||
elseif string.match(scancode, "^f[1-9]$") or string.match(scancode, "^f1[0-2]+$") then
|
elseif string.match(scancode, "^f[1-9]$") or string.match(scancode, "^f1[0-2]+$") then
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user