整理代码
This commit is contained in:
@@ -119,7 +119,7 @@ function love.mousepressed(x,y,k,touch)
|
|||||||
if SCN.mouseDown then SCN.mouseDown(mx,my,k)end
|
if SCN.mouseDown then SCN.mouseDown(mx,my,k)end
|
||||||
WIDGET.press(mx,my,k)
|
WIDGET.press(mx,my,k)
|
||||||
lastX,lastY=mx,my
|
lastX,lastY=mx,my
|
||||||
if SETTING.clickFX then SYSFX.newTap(3,mx,my,30)end
|
if SETTING.clickFX then SYSFX.newTap(3,mx,my)end
|
||||||
end
|
end
|
||||||
function love.mousemoved(x,y,dx,dy,touch)
|
function love.mousemoved(x,y,dx,dy,touch)
|
||||||
if touch then return end
|
if touch then return end
|
||||||
@@ -189,7 +189,7 @@ function love.touchreleased(id,x,y)
|
|||||||
if SCN.touchUp then SCN.touchUp(x,y)end
|
if SCN.touchUp then SCN.touchUp(x,y)end
|
||||||
if(x-lastX)^2+(y-lastY)^2<62 then
|
if(x-lastX)^2+(y-lastY)^2<62 then
|
||||||
if SCN.touchClick then SCN.touchClick(x,y)end
|
if SCN.touchClick then SCN.touchClick(x,y)end
|
||||||
if SETTING.clickFX then SYSFX.newTap(3,x,y,30)end
|
if SETTING.clickFX then SYSFX.newTap(3,x,y)end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -368,7 +368,7 @@ do--function DATA.saveRecording()
|
|||||||
end
|
end
|
||||||
|
|
||||||
--Write file
|
--Write file
|
||||||
local fileName="replay/"..os.date("%Y_%m_%d_%a_%H%M%S.rep")
|
local fileName=os.date("replay/%Y_%m_%d_%a_%H%M%S.rep")
|
||||||
if not love.filesystem.getInfo(fileName)then
|
if not love.filesystem.getInfo(fileName)then
|
||||||
local fileHead=
|
local fileHead=
|
||||||
os.date("%Y/%m/%d %A %H:%M:%S\n")..
|
os.date("%Y/%m/%d %A %H:%M:%S\n")..
|
||||||
|
|||||||
Reference in New Issue
Block a user