重构背景系统(每个背景使用独立文件),全局变量名整理

This commit is contained in:
MrZ626
2020-11-04 00:08:50 +08:00
parent c688fef3f6
commit a485a71dfc
149 changed files with 1087 additions and 1046 deletions

View File

@@ -1,8 +1,6 @@
local gc=love.graphics
local kb=love.keyboard
local setFont=setFont
local find,sub,byte=string.find,string.sub,string.byte
function sceneInit.calculator()
@@ -87,9 +85,9 @@ function keyDown.calculator(k)
SFX.play("clear")
elseif v==72943816 then
S.pass=true
for name,M in next,Modes do
if not modeRanks[name]then
modeRanks[name]=M.score and 0 or 6
for name,M in next,MODES do
if not RANKS[name]then
RANKS[name]=M.score and 0 or 6
end
end
FILE.saveUnlock()