修复暂停时设置能进入彩蛋模式 close #206

This commit is contained in:
MrZ626
2021-08-16 01:27:11 +08:00
parent 9dbb32c982
commit 45dce3210a
8 changed files with 18 additions and 8 deletions

View File

@@ -78,6 +78,10 @@ function scene.sceneInit(org)
NET.specSRID=false
end
end
function scene.sceneBack()
destroyPlayers()
GAME.playing=false
end
scene.mouseDown=NULL
function scene.mouseMove(x,y)netPLY.mouseMove(x,y)end

View File

@@ -129,6 +129,7 @@ function scene.keyDown(key,isRep)
if isRep then return end
if key=="q"then
SCN.back()
GAME.playing=false
elseif key=="escape"then
SCN.swapTo(GAME.result and'game'or'depause','none')
elseif key=="s"then

View File

@@ -58,7 +58,7 @@ end
local function nextDir(i)
SETTING.face[i]=(SETTING.face[i]+1)%4
minoRot0[i]=minoRot0[i]+1.5707963
if minoRot0[5]>62 then
if minoRot0[5]>62 and not GAME.playing then
loadGame('marathon_bfmax',true)
end
SFX.play('rotate')

View File

@@ -25,7 +25,7 @@ function scene.mouseDown(x,y)
jump=10
local t=TIME()-last
if t>1 then
if t>2.6 and t<3 then
if t>2.6 and t<3 and not GAME.playing then
loadGame('sprintSmooth',true)
else
VOC.play(

View File

@@ -20,11 +20,13 @@ end
function scene.mouseDown(x,y)
local T=40*math.min(time,45)
if x>230 and x<1050 then
if math.abs(y-800+T)<70 then
loadGame('sprintLock',true)
elseif math.abs(y-2160+T)<70 then
loadGame('sprintFix',true)
if not GAME.playing then
if x>230 and x<1050 then
if math.abs(y-800+T)<70 then
loadGame('sprintLock',true)
elseif math.abs(y-2160+T)<70 then
loadGame('sprintFix',true)
end
end
end
end
@@ -37,7 +39,7 @@ function scene.keyDown(key,isRep)
if isRep then return end
if key=="escape"then
SCN.back()
else
elseif not GAME.playing then
if key=="l"then
loadGame('sprintLock',true)
elseif key=="f"then