整理代码,改正时间字符串格式少删个字母
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
local int,format=math.floor,string.format
|
local int,format=math.floor,string.format
|
||||||
return function(s)
|
return function(s)
|
||||||
if s<60 then
|
if s<60 then
|
||||||
return format("%.3fs\"",s)
|
return format("%.3f\"",s)
|
||||||
elseif s<3600 then
|
elseif s<3600 then
|
||||||
return format("%d'%05.2f\"",int(s/60),s%60)
|
return format("%d'%05.2f\"",int(s/60),s%60)
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -1,13 +1,10 @@
|
|||||||
local gc=love.graphics
|
local gc=love.graphics
|
||||||
local int=math.floor
|
|
||||||
|
|
||||||
local scene={}
|
local scene={}
|
||||||
|
|
||||||
local timer
|
local timer
|
||||||
|
|
||||||
function scene.sceneInit()
|
function scene.sceneInit()timer=1 end
|
||||||
timer=1
|
|
||||||
end
|
|
||||||
|
|
||||||
scene.keyDown=NULL
|
scene.keyDown=NULL
|
||||||
scene.mouseDown=NULL
|
scene.mouseDown=NULL
|
||||||
|
|||||||
Reference in New Issue
Block a user