整理代码,表示键盘按键的字符串使用单引号
This commit is contained in:
@@ -16,9 +16,9 @@ end
|
||||
scene.touchDown=scene.mouseDown
|
||||
|
||||
function scene.keyDown(key)
|
||||
if key=="escape"then
|
||||
if key=='escape'then
|
||||
SCN.back()
|
||||
elseif key=="space"then
|
||||
elseif key=='space'then
|
||||
loadGame('stack_e',true)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user