整理代码,略微调整小游戏dtw的交互

This commit is contained in:
MrZ626
2021-02-25 01:06:02 +08:00
parent 57003e3e8a
commit c42bb942f1
2 changed files with 7 additions and 8 deletions

View File

@@ -12,13 +12,12 @@ local speed=0
local maxSpeed=260
function scene.sceneInit()
BG.set("grey")
BGM.play("push")
love.keyboard.setKeyRepeat(false)
lastKey=nil
speed=0
keyTime={}for i=1,20 do keyTime[i]=-1e99 end
love.keyboard.setKeyRepeat(false)
BG.set("grey")
BGM.play("push")
end
function scene.sceneBack()
love.keyboard.setKeyRepeat(true)