暂停界面可以按自定义的重开键
This commit is contained in:
@@ -165,6 +165,8 @@ function scene.keyDown(key,isRep)
|
|||||||
SFX.play('clear_3')
|
SFX.play('clear_3')
|
||||||
SYSFX.newShade(1.2,555,200,620,380,.6,.6,.6)
|
SYSFX.newShade(1.2,555,200,620,380,.6,.6,.6)
|
||||||
end
|
end
|
||||||
|
elseif KEY_MAP.keyboard[key]==0 then -- custom restart key
|
||||||
|
scene.keyDown('r')
|
||||||
else
|
else
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
@@ -187,6 +189,14 @@ end
|
|||||||
scene.mouseUp=scene.touchUp
|
scene.mouseUp=scene.touchUp
|
||||||
scene.mouseDown=scene.touchDown
|
scene.mouseDown=scene.touchDown
|
||||||
|
|
||||||
|
function scene.gamepadDown(key)
|
||||||
|
if key=='back' then
|
||||||
|
scene.keyDown('escape')
|
||||||
|
elseif KEY_MAP.joystick[key]==0 then
|
||||||
|
scene.keyDown('r')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function scene.update(dt)
|
function scene.update(dt)
|
||||||
if not (GAME.result or GAME.replaying) then
|
if not (GAME.result or GAME.replaying) then
|
||||||
GAME.pauseTime=GAME.pauseTime+dt
|
GAME.pauseTime=GAME.pauseTime+dt
|
||||||
|
|||||||
Reference in New Issue
Block a user