全局变量MODEENV移入全局变量GAME中,重构虚拟按键显示情况代码

This commit is contained in:
MrZ626
2020-11-19 22:45:10 +08:00
parent 1c31015fa8
commit f216e2d6e5
10 changed files with 73 additions and 63 deletions

View File

@@ -6,7 +6,7 @@ function sceneInit.main()
}
BG.set("space")
MODEENV=NONE
GAME.modeEnv=NONE
--Create demo player
destroyPlayers()
GAME.frame=0

View File

@@ -216,7 +216,7 @@ function Tmr.play(dt)
end
--Fresh royale target
if MODEENV.royaleMode and GAME.frame%120==0 then
if GAME.modeEnv.royaleMode and GAME.frame%120==0 then
freshMostDangerous()
end
@@ -308,7 +308,7 @@ function Pnt.play()
gc.setColor(1,1,1)
if SETTING.VKSwitch then drawVirtualkey()end
if MODEENV.royaleMode then
if GAME.modeEnv.royaleMode then
local P=PLAYERS[1]
gc.setLineWidth(5)
gc.setColor(.8,1,0,.2)