简化场景touch事件参数

This commit is contained in:
MrZ626
2021-02-10 20:08:10 +08:00
parent d2a524b26e
commit 1b5401bf7f
16 changed files with 31 additions and 31 deletions

View File

@@ -66,7 +66,7 @@ function scene.sceneInit()
BG.set("none")
end
function scene.touchDown(_,x)
function scene.touchDown(x)
if play then
if x<640 then
moveDir=-1
@@ -75,7 +75,7 @@ function scene.touchDown(_,x)
end
end
end
function scene.touchUp(_,x)
function scene.touchUp(x)
if play then
local L=tc.getTouches()
if x<640 then