简易健康游戏时间提醒

This commit is contained in:
MrZ626
2020-12-05 01:59:21 +08:00
parent ba4d3b09ff
commit 27d8aac39e
12 changed files with 60 additions and 12 deletions

View File

@@ -44,7 +44,6 @@ function scene.keyDown(key)
return
end
end
SCN.push()
if key=="return2"or kb.isDown("lalt","lctrl","lshift")then
if sceneTemp.initField then
loadGame("custom_puzzle",true)

View File

@@ -41,7 +41,7 @@ scene.widgetList={
WIDGET.newButton{name="custom", x=590,y=220,w=200,h=140,color="lBlue", font=40,code=WIDGET.lnk_goScene("customGame")},
WIDGET.newButton{name="setting",x=150,y=380,w=200,h=140,color="lOrange",font=40,code=WIDGET.lnk_goScene("setting_game")},
WIDGET.newButton{name="stat", x=370,y=380,w=200,h=140,color="lGreen", font=40,code=WIDGET.lnk_goScene("stat")},
WIDGET.newButton{name="qplay", x=590,y=380,w=200,h=140,color="white", font=40,code=function()SCN.push()loadGame(STAT.lastPlay,true)end},
WIDGET.newButton{name="qplay", x=590,y=380,w=200,h=140,color="white", font=40,code=function()loadGame(STAT.lastPlay,true)end},
WIDGET.newButton{name="lang", x=150,y=515,w=200,h=90,color="lYellow", font=40,code=WIDGET.lnk_goScene("lang")},
WIDGET.newButton{name="help", x=370,y=515,w=200,h=90,color="dGreen", font=40,code=WIDGET.lnk_goScene("help")},
WIDGET.newButton{name="quit", x=590,y=515,w=200,h=90,color="grey", font=40,code=function()VOC.play("bye")SCN.swapTo("quit","slowFade")end},

View File

@@ -119,6 +119,7 @@ function scene.sceneBack()
love.keyboard.setKeyRepeat(true)
if not GAME.replaying then
mergeStat(STAT,PLAYERS[1].stat)
STAT.todayTime=STAT.todayTime+PLAYERS[1].stat.time
end
if not GAME.result then
FILE.save(STAT,"data")

View File

@@ -14,10 +14,10 @@ end
function scene.mouseDown(x,y)
if x>230 and x<1050 then
if math.abs(y-800+sceneTemp.time*40)<70 then
SCN.pop()SCN.push()
SCN.pop()
loadGame("sprintLock")
elseif math.abs(y-2160+sceneTemp.time*40)<70 then
SCN.pop()SCN.push()
SCN.pop()
loadGame("sprintFix")
end
end