整理代码

This commit is contained in:
MrZ626
2021-04-28 09:36:22 +08:00
parent 385d376037
commit 28576c2c9a
28 changed files with 92 additions and 105 deletions

View File

@@ -1,6 +1,5 @@
local gc=love.graphics
local max=math.max
local format=string.format
local ins=table.insert
local mStr=mStr
@@ -45,16 +44,16 @@ end
function scene.draw()
setFont(70)gc.setColor(1,.6,.6)
mStr(format("%.2f",maxSpeed),640,20)
mStr(("%.2f"):format(maxSpeed),640,20)
setFont(100)gc.setColor(1,1,1)
mStr(format("%.2f",speed),640,150)
mStr(("%.2f"):format(speed),640,150)
setFont(35)
gc.setColor(.6,.6,.9)
mStr(format("%.2f",maxSpeed/60),640,95)
mStr(("%.2f"):format(maxSpeed/60),640,95)
gc.setColor(.8,.8,.8)
mStr(format("%.2f",speed/60),640,255)
mStr(("%.2f"):format(speed/60),640,255)
setFont(60)gc.setColor(.7,.7,.7)
mStr("/min",640,310)