整理代码,修复新的彩蛋模式触屏进不去

This commit is contained in:
MrZ626
2021-09-27 00:31:56 +08:00
parent 702abbf7b1
commit f2ffdc9e58
8 changed files with 14 additions and 29 deletions

View File

@@ -201,18 +201,9 @@ function scene.draw()
end
end
end
function scene.touchDown(x,y)
scene.mouseMove(x,y)
end
function scene.touchMove(x,y)
scene.mouseMove(x,y)
end
function scene.touchUp(x,y)
scene.mouseDown(x,y)
end
scene.touchDown=scene.mouseMove
scene.touchMove=scene.mouseMove
scene.touchUp=scene.mouseDown
function scene.mouseMove(x,y)
x,y=int((x-280)/80),int(y/80)