整理代码,表示键盘按键的字符串使用单引号

This commit is contained in:
MrZ626
2021-11-27 18:57:23 +08:00
parent 841faeede4
commit f6b4c1b109
48 changed files with 499 additions and 499 deletions

View File

@@ -31,17 +31,17 @@ end
scene.touchDown=scene.mouseDown
function scene.keyDown(key)
if key=="escape"then
if key=='escape'then
SCN.back()
elseif key=="l"then
elseif key=='l'then
loadGame('sprintLock',true)
elseif key=="f"then
elseif key=='f'then
loadGame('sprintFix',true)
end
end
function scene.update(dt)
if(kb.isDown("space","return")or tc.getTouches()[1])and v<6.26 then
if(kb.isDown('space','return')or tc.getTouches()[1])and v<6.26 then
v=v+.26
elseif v>1 then
v=v-.16