This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-05-22 00:29:07 +07:00
parent d7cc69b2fe
commit bec80916cb

View File

@@ -115,8 +115,8 @@ function love.draw()
-- end
love.graphics.setColor(0, 0, 0, 0.8)
love.graphics.rectangle("fill", 10, 445, 200, 30)
drawText("X: "..(LAST_X_POSITION or "-").."; Y: "..(LAST_Y_POSITION or "-"), 10, 455, 200, "left")
love.graphics.rectangle("fill", 10, 445, 400, 30)
drawText("X: "..(LAST_X_POSITION or "--------").."; Y: "..(LAST_Y_POSITION or "--------"), 10, 455, 400, "left")
love.graphics.pop()
end
@@ -156,8 +156,8 @@ function love.touchreleased(id,x,y)
local x,y=GLOBAL_TRANSFORM:inverseTransformPoint(x,y)
if not VCTRL.release(id) then
SCENE:onInputRelease{type = "touch", x = x, y = y, dx = 0, dy = 0, id = id}
LAST_X_POSITION, LAST_Y_POSITION = x, y
end
LAST_X_POSITION, LAST_Y_POSITION = x, y
end
function love.keypressed(key, scancode)