test场景微调
This commit is contained in:
@@ -32,14 +32,19 @@ end
|
|||||||
function scene.keyUp(key)
|
function scene.keyUp(key)
|
||||||
push{COLOR.H,"[keyUp] <"..key..">"}
|
push{COLOR.H,"[keyUp] <"..key..">"}
|
||||||
end
|
end
|
||||||
|
function scene.mouseClick(x,y)
|
||||||
|
SYSFX.newRipple(.5,x,y,50)
|
||||||
|
push("[mouseClick]")
|
||||||
|
end
|
||||||
function scene.mouseDown(x,y,k)
|
function scene.mouseDown(x,y,k)
|
||||||
|
SYSFX.newShade(.5,x-10,y-10,20,20)
|
||||||
push(("[mouseDown] <%d: %d, %d>"):format(k,x,y))
|
push(("[mouseDown] <%d: %d, %d>"):format(k,x,y))
|
||||||
end
|
end
|
||||||
function scene.mouseMove(x,y)
|
function scene.mouseMove(x,y)
|
||||||
SYSFX.newShade(.5,x-3,y-3,7,7)
|
SYSFX.newShade(.5,x-3,y-3,6,6)
|
||||||
end
|
end
|
||||||
function scene.mouseUp(x,y,k)
|
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..">"}
|
push{COLOR.H,"[mouseUp] <"..k..">"}
|
||||||
end
|
end
|
||||||
function scene.touchClick(x,y)
|
function scene.touchClick(x,y)
|
||||||
@@ -47,14 +52,14 @@ function scene.touchClick(x,y)
|
|||||||
push("[touchClick]")
|
push("[touchClick]")
|
||||||
end
|
end
|
||||||
function scene.touchDown(x,y)
|
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))
|
push(("[touchDown] <%d, %d>"):format(x,y))
|
||||||
end
|
end
|
||||||
function scene.touchMove(x,y)
|
function scene.touchMove(x,y)
|
||||||
SYSFX.newRipple(.5,x,y,50)
|
SYSFX.newShade(.5,x-3,y-3,6,6)
|
||||||
end
|
end
|
||||||
function scene.touchUp(x,y)
|
function scene.touchUp(x,y)
|
||||||
SYSFX.newRipple(.5,x,y,50)
|
SYSFX.newRectRipple(1,x-10,y-10,20,20)
|
||||||
push{COLOR.H,"[touchUp]"}
|
push{COLOR.H,"[touchUp]"}
|
||||||
end
|
end
|
||||||
function scene.wheelMoved(dx,dy)
|
function scene.wheelMoved(dx,dy)
|
||||||
|
|||||||
Reference in New Issue
Block a user