test场景微调

This commit is contained in:
MrZ626
2021-05-09 21:29:50 +08:00
parent ac546e4f8d
commit 16e7dd71f1

View File

@@ -32,14 +32,19 @@ end
function scene.keyUp(key)
push{COLOR.H,"[keyUp] <"..key..">"}
end
function scene.mouseClick(x,y)
SYSFX.newRipple(.5,x,y,50)
push("[mouseClick]")
end
function scene.mouseDown(x,y,k)
SYSFX.newShade(.5,x-10,y-10,20,20)
push(("[mouseDown] <%d: %d, %d>"):format(k,x,y))
end
function scene.mouseMove(x,y)
SYSFX.newShade(.5,x-3,y-3,7,7)
SYSFX.newShade(.5,x-3,y-3,6,6)
end
function scene.mouseUp(x,y,k)
SYSFX.newRectRipple(1,x-10,y-10,21,21)
SYSFX.newRectRipple(1,x-10,y-10,20,20)
push{COLOR.H,"[mouseUp] <"..k..">"}
end
function scene.touchClick(x,y)
@@ -47,14 +52,14 @@ function scene.touchClick(x,y)
push("[touchClick]")
end
function scene.touchDown(x,y)
SYSFX.newRipple(.5,x,y,50)
SYSFX.newShade(.5,x-10,y-10,20,20)
push(("[touchDown] <%d, %d>"):format(x,y))
end
function scene.touchMove(x,y)
SYSFX.newRipple(.5,x,y,50)
SYSFX.newShade(.5,x-3,y-3,6,6)
end
function scene.touchUp(x,y)
SYSFX.newRipple(.5,x,y,50)
SYSFX.newRectRipple(1,x-10,y-10,20,20)
push{COLOR.H,"[touchUp]"}
end
function scene.wheelMoved(dx,dy)