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

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,6 +1,6 @@
local min=math.min
return{
color=color.red,
color=COLOR.red,
env={
drop=20,lock=60,
sequence=function(P)
@@ -8,7 +8,7 @@ return{
end,
freshMethod=function(P)
if not P.next[1] then
local height=freeRow.get(0)
local height=FREEROW.get(0)
local max=#P.field
if max>0 then
--Get heights
@@ -87,7 +87,7 @@ return{
end
::END::
freeRow.discard(height)
FREEROW.discard(height)
P:getNext(res[P:RND(#res)])
end
end,