整理代码

更多帧更新改为时间更新
微调cubes背景
微调音乐室ui
This commit is contained in:
MrZ626
2021-09-25 19:29:09 +08:00
parent da58578d33
commit fddb2db8c7
9 changed files with 104 additions and 106 deletions

View File

@@ -1,6 +1,7 @@
local gc=love.graphics
local gc_draw,gc_setColor,gc_setLineWidth=gc.draw,gc.setColor,gc.setLineWidth
local max=math.max
local next=next
local SETTING,TIME=SETTING,TIME
@@ -212,11 +213,11 @@ function VK.changeSet(id)
end
end
function VK.update()
function VK.update(dt)
if SETTING.VKSwitch then
for _,B in next,keys do
if B.pressTime>0 then
B.pressTime=B.pressTime-1
B.pressTime=max(B.pressTime-dt*60,0)
end
end
end