mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
test
This commit is contained in:
6
main.lua
6
main.lua
@@ -115,8 +115,8 @@ function love.draw()
|
|||||||
-- end
|
-- end
|
||||||
|
|
||||||
love.graphics.setColor(0, 0, 0, 0.8)
|
love.graphics.setColor(0, 0, 0, 0.8)
|
||||||
love.graphics.rectangle("fill", 10, 445, 200, 30)
|
love.graphics.rectangle("fill", 10, 445, 400, 30)
|
||||||
drawText("X: "..(LAST_X_POSITION or "-").."; Y: "..(LAST_Y_POSITION or "-"), 10, 455, 200, "left")
|
drawText("X: "..(LAST_X_POSITION or "--------").."; Y: "..(LAST_Y_POSITION or "--------"), 10, 455, 400, "left")
|
||||||
|
|
||||||
love.graphics.pop()
|
love.graphics.pop()
|
||||||
end
|
end
|
||||||
@@ -156,8 +156,8 @@ function love.touchreleased(id,x,y)
|
|||||||
local x,y=GLOBAL_TRANSFORM:inverseTransformPoint(x,y)
|
local x,y=GLOBAL_TRANSFORM:inverseTransformPoint(x,y)
|
||||||
if not VCTRL.release(id) then
|
if not VCTRL.release(id) then
|
||||||
SCENE:onInputRelease{type = "touch", x = x, y = y, dx = 0, dy = 0, id = id}
|
SCENE:onInputRelease{type = "touch", x = x, y = y, dx = 0, dy = 0, id = id}
|
||||||
|
LAST_X_POSITION, LAST_Y_POSITION = x, y
|
||||||
end
|
end
|
||||||
LAST_X_POSITION, LAST_Y_POSITION = x, y
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function love.keypressed(key, scancode)
|
function love.keypressed(key, scancode)
|
||||||
|
|||||||
Reference in New Issue
Block a user