整理代码
This commit is contained in:
@@ -1,12 +1,11 @@
|
|||||||
local gc=love.graphics
|
local gc=love.graphics
|
||||||
local Timer=love.timer.getTime
|
local Timer=love.timer.getTime
|
||||||
|
|
||||||
local setFont=setFont
|
|
||||||
local mStr=mStr
|
|
||||||
|
|
||||||
local sin,log=math.sin,math.log
|
local sin,log=math.sin,math.log
|
||||||
local format=string.format
|
local format=string.format
|
||||||
|
|
||||||
|
local setFont=setFont
|
||||||
|
local mStr=mStr
|
||||||
local SCR=SCR
|
local SCR=SCR
|
||||||
|
|
||||||
local fnsRankColor={
|
local fnsRankColor={
|
||||||
@@ -20,11 +19,7 @@ local fnsRankColor={
|
|||||||
F=COLOR.dRed,
|
F=COLOR.dRed,
|
||||||
}
|
}
|
||||||
function sceneInit.pause(org)
|
function sceneInit.pause(org)
|
||||||
if
|
if org:find("setting")then
|
||||||
org=="setting_game"or
|
|
||||||
org=="setting_video"or
|
|
||||||
org=="setting_sound"
|
|
||||||
then
|
|
||||||
TEXT.show(text.needRestart,640,440,50,"fly",.6)
|
TEXT.show(text.needRestart,640,440,50,"fly",.6)
|
||||||
end
|
end
|
||||||
local P=PLAYERS[1]
|
local P=PLAYERS[1]
|
||||||
@@ -131,7 +126,6 @@ function keyDown.pause(key)
|
|||||||
resumeGame()
|
resumeGame()
|
||||||
elseif key=="s"then
|
elseif key=="s"then
|
||||||
GAME.prevBG=BG.cur
|
GAME.prevBG=BG.cur
|
||||||
print(BG.cur)
|
|
||||||
SCN.go("setting_sound")
|
SCN.go("setting_sound")
|
||||||
elseif key=="r"then
|
elseif key=="r"then
|
||||||
resetGameData()
|
resetGameData()
|
||||||
|
|||||||
Reference in New Issue
Block a user