From 8291184ae6f73a6bd492195f902720aa7bbaa440 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 18 Nov 2020 16:35:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/pause.lua | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/parts/scenes/pause.lua b/parts/scenes/pause.lua index f6d050fd..5a2b6f75 100644 --- a/parts/scenes/pause.lua +++ b/parts/scenes/pause.lua @@ -1,12 +1,11 @@ local gc=love.graphics local Timer=love.timer.getTime -local setFont=setFont -local mStr=mStr - local sin,log=math.sin,math.log local format=string.format +local setFont=setFont +local mStr=mStr local SCR=SCR local fnsRankColor={ @@ -20,11 +19,7 @@ local fnsRankColor={ F=COLOR.dRed, } function sceneInit.pause(org) - if - org=="setting_game"or - org=="setting_video"or - org=="setting_sound" - then + if org:find("setting")then TEXT.show(text.needRestart,640,440,50,"fly",.6) end local P=PLAYERS[1] @@ -131,7 +126,6 @@ function keyDown.pause(key) resumeGame() elseif key=="s"then GAME.prevBG=BG.cur - print(BG.cur) SCN.go("setting_sound") elseif key=="r"then resetGameData()