重构背景系统(每个背景使用独立文件),全局变量名整理
This commit is contained in:
@@ -12,7 +12,7 @@ local function score(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.lBlue,
|
||||
color=COLOR.lBlue,
|
||||
env={
|
||||
noTele=true,
|
||||
minarr=1,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return{
|
||||
color=color.magenta,
|
||||
color=COLOR.magenta,
|
||||
env={
|
||||
drop=30,lock=60,
|
||||
fall=12,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local min=math.min
|
||||
return{
|
||||
color=color.lYellow,
|
||||
color=COLOR.lYellow,
|
||||
env={
|
||||
drop=5,lock=60,
|
||||
fall=8,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local format=string.format
|
||||
return{
|
||||
color=color.lGrey,
|
||||
color=COLOR.lGrey,
|
||||
env={
|
||||
drop=1e99,lock=1e99,
|
||||
hold=false,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local min=math.min
|
||||
return{
|
||||
color=color.cyan,
|
||||
color=COLOR.cyan,
|
||||
env={
|
||||
drop=30,lock=45,
|
||||
visible="time",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
local gc=love.graphics
|
||||
local min=math.min
|
||||
return{
|
||||
color=color.magenta,
|
||||
color=COLOR.magenta,
|
||||
env={
|
||||
drop=15,lock=45,
|
||||
fall=10,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
local gc=love.graphics
|
||||
local min=math.min
|
||||
return{
|
||||
color=color.red,
|
||||
color=COLOR.red,
|
||||
env={
|
||||
drop=10,lock=60,
|
||||
fall=5,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
local gc=love.graphics
|
||||
local min=math.min
|
||||
return{
|
||||
color=color.green,
|
||||
color=COLOR.green,
|
||||
env={
|
||||
drop=15,lock=45,
|
||||
freshLimit=10,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
local gc=love.graphics
|
||||
local min=math.min
|
||||
return{
|
||||
color=color.red,
|
||||
color=COLOR.red,
|
||||
env={
|
||||
drop=30,lock=60,
|
||||
block=false,center=0,ghost=0,
|
||||
|
||||
@@ -2,7 +2,7 @@ local gc=love.graphics
|
||||
local sin,min=math.sin,math.min
|
||||
local Timer=love.timer.getTime
|
||||
return{
|
||||
color=color.red,
|
||||
color=COLOR.red,
|
||||
env={
|
||||
drop=30,lock=60,
|
||||
next=1,
|
||||
@@ -18,7 +18,7 @@ return{
|
||||
load=function()
|
||||
PLY.newPlayer(1,340,15)
|
||||
if SETTING.spawn==0 then
|
||||
LOG.print(text.switchSpawnSFX,color.yellow)
|
||||
LOG.print(text.switchSpawnSFX,COLOR.yellow)
|
||||
end
|
||||
end,
|
||||
mesDisp=function(P)
|
||||
|
||||
@@ -4,8 +4,8 @@ local function check_c4w(P)
|
||||
P:lose()
|
||||
else
|
||||
for _=1,#P.clearedRow do
|
||||
P.field[#P.field+1]=freeRow.get(13)
|
||||
P.visTime[#P.visTime+1]=freeRow.get(20)
|
||||
P.field[#P.field+1]=FREEROW.get(13)
|
||||
P.visTime[#P.visTime+1]=FREEROW.get(20)
|
||||
for i=4,7 do P.field[#P.field][i]=0 end
|
||||
end
|
||||
if P.combo>P.modeData.point then
|
||||
@@ -18,7 +18,7 @@ local function check_c4w(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.red,
|
||||
color=COLOR.red,
|
||||
env={
|
||||
drop=5,lock=30,
|
||||
dropPiece=check_c4w,
|
||||
@@ -31,8 +31,8 @@ return{
|
||||
local P=PLAYERS[1]
|
||||
local F=P.field
|
||||
for i=1,24 do
|
||||
F[i]=freeRow.get(13)
|
||||
P.visTime[i]=freeRow.get(20)
|
||||
F[i]=FREEROW.get(13)
|
||||
P.visTime[i]=FREEROW.get(20)
|
||||
for x=4,7 do F[i][x]=0 end
|
||||
end
|
||||
local r=P:RND(6)
|
||||
|
||||
@@ -2,8 +2,8 @@ local min=math.min
|
||||
local function check_c4w(P)
|
||||
if #P.clearedRow>0 then
|
||||
for _=1,#P.clearedRow do
|
||||
P.field[#P.field+1]=freeRow.get(13)
|
||||
P.visTime[#P.visTime+1]=freeRow.get(20)
|
||||
P.field[#P.field+1]=FREEROW.get(13)
|
||||
P.visTime[#P.visTime+1]=FREEROW.get(20)
|
||||
for i=4,7 do P.field[#P.field][i]=0 end
|
||||
end
|
||||
if P.combo>P.modeData.point then
|
||||
@@ -16,7 +16,7 @@ local function check_c4w(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.green,
|
||||
color=COLOR.green,
|
||||
env={
|
||||
drop=30,lock=60,oncehold=false,
|
||||
dropPiece=check_c4w,
|
||||
@@ -29,8 +29,8 @@ return{
|
||||
local P=PLAYERS[1]
|
||||
local F=P.field
|
||||
for i=1,24 do
|
||||
F[i]=freeRow.get(13)
|
||||
P.visTime[i]=freeRow.get(20)
|
||||
F[i]=FREEROW.get(13)
|
||||
P.visTime[i]=FREEROW.get(20)
|
||||
for x=4,7 do F[i][x]=0 end
|
||||
end
|
||||
local r=P:RND(6)
|
||||
|
||||
@@ -15,7 +15,7 @@ local function check_LVup(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.lBlue,
|
||||
color=COLOR.lBlue,
|
||||
env={
|
||||
noTele=true,
|
||||
das=16,arr=6,sddas=2,sdarr=2,
|
||||
|
||||
@@ -17,8 +17,8 @@ local function setField(P,page)
|
||||
local t=P.showTime*3
|
||||
for y=1,height do
|
||||
local solid=notAir(F[y])
|
||||
P.field[y]=freeRow.get(0,solid)
|
||||
P.visTime[y]=freeRow.get(t)
|
||||
P.field[y]=FREEROW.get(0,solid)
|
||||
P.visTime[y]=FREEROW.get(t)
|
||||
if solid then
|
||||
for x=1,10 do
|
||||
P.field[y][x]=F[y][x]
|
||||
@@ -33,8 +33,8 @@ local function checkClear(P)
|
||||
if FIELD[P.modeData.point+1]then
|
||||
P.waiting=26
|
||||
for _=#P.field,1,-1 do
|
||||
freeRow.discard(P.field[_])
|
||||
freeRow.discard(P.visTime[_])
|
||||
FREEROW.discard(P.field[_])
|
||||
FREEROW.discard(P.visTime[_])
|
||||
P.field[_],P.visTime[_]=nil
|
||||
end
|
||||
setField(P,P.modeData.point+1)
|
||||
@@ -46,7 +46,7 @@ local function checkClear(P)
|
||||
end
|
||||
end
|
||||
return{
|
||||
color=color.white,
|
||||
color=COLOR.white,
|
||||
env={},
|
||||
load=function()
|
||||
for k,v in next,customEnv do
|
||||
@@ -80,9 +80,9 @@ return{
|
||||
if L~=0 then
|
||||
modeEnv.target=nil
|
||||
if L<6 then
|
||||
PLY.newAIPlayer(2,965,360,.5,AITemplate("9S",2*L))
|
||||
PLY.newAIPlayer(2,965,360,.5,AIBUILDER("9S",2*L))
|
||||
else
|
||||
PLY.newAIPlayer(2,965,360,.5,AITemplate("CC",2*L-11,int(L*.5-1.5),modeEnv.hold,4000*L))
|
||||
PLY.newAIPlayer(2,965,360,.5,AIBUILDER("CC",2*L-11,int(L*.5-1.5),modeEnv.hold,4000*L))
|
||||
end
|
||||
end
|
||||
for _,P in next,PLAYERS.alive do
|
||||
|
||||
@@ -18,8 +18,8 @@ local function puzzleCheck(P)
|
||||
if FIELD[P.modeData.point+1]then
|
||||
P.waiting=26
|
||||
for _=#P.field,1,-1 do
|
||||
freeRow.discard(P.field[_])
|
||||
freeRow.discard(P.visTime[_])
|
||||
FREEROW.discard(P.field[_])
|
||||
FREEROW.discard(P.visTime[_])
|
||||
P.field[_],P.visTime[_]=nil
|
||||
end
|
||||
sysFX.newShade(.7,.3,1,.3,P.x+150*P.size,P.y+60*P.size,300*P.size,610*P.size)
|
||||
@@ -32,7 +32,7 @@ local function puzzleCheck(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.white,
|
||||
color=COLOR.white,
|
||||
env={
|
||||
Fkey=function(P)P.modeData.event=1-P.modeData.event end,
|
||||
dropPiece=puzzleCheck,
|
||||
@@ -56,9 +56,9 @@ return{
|
||||
if L~=0 then
|
||||
modeEnv.target=nil
|
||||
if L<6 then
|
||||
PLY.newAIPlayer(2,965,360,.5,AITemplate("9S",2*L))
|
||||
PLY.newAIPlayer(2,965,360,.5,AIBUILDER("9S",2*L))
|
||||
else
|
||||
PLY.newAIPlayer(2,965,360,.5,AITemplate("CC",2*L-11,int(L*.5-1.5),modeEnv.hold,4000*L))
|
||||
PLY.newAIPlayer(2,965,360,.5,AIBUILDER("CC",2*L-11,int(L*.5-1.5),modeEnv.hold,4000*L))
|
||||
end
|
||||
end
|
||||
modeEnv.bg=customEnv.bg
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local int=math.floor
|
||||
return{
|
||||
color=color.red,
|
||||
color=COLOR.red,
|
||||
env={
|
||||
drop=5,lock=60,
|
||||
fall=6,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local int=math.floor
|
||||
return{
|
||||
color=color.green,
|
||||
color=COLOR.green,
|
||||
env={
|
||||
drop=30,lock=60,
|
||||
fall=10,
|
||||
|
||||
@@ -5,7 +5,7 @@ local function check_rise(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.cyan,
|
||||
color=COLOR.cyan,
|
||||
env={
|
||||
pushSpeed=6,
|
||||
dropPiece=check_rise,
|
||||
|
||||
@@ -8,7 +8,7 @@ local function check_rise(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.green,
|
||||
color=COLOR.green,
|
||||
env={
|
||||
pushSpeed=6,
|
||||
dropPiece=check_rise,
|
||||
|
||||
@@ -8,7 +8,7 @@ local function check_rise(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.lBlue,
|
||||
color=COLOR.lBlue,
|
||||
env={
|
||||
pushSpeed=6,
|
||||
dropPiece=check_rise,
|
||||
|
||||
@@ -8,7 +8,7 @@ local function check_rise(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.orange,
|
||||
color=COLOR.orange,
|
||||
env={
|
||||
pushSpeed=6,
|
||||
dropPiece=check_rise,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local max=math.max
|
||||
return{
|
||||
color=color.magenta,
|
||||
color=COLOR.magenta,
|
||||
env={
|
||||
drop=60,lock=120,
|
||||
fall=20,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local max=math.max
|
||||
return{
|
||||
color=color.lYellow,
|
||||
color=COLOR.lYellow,
|
||||
env={
|
||||
drop=10,lock=30,
|
||||
freshLimit=15,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local min=math.min
|
||||
return{
|
||||
color=color.green,
|
||||
color=COLOR.green,
|
||||
env={
|
||||
drop=20,lock=60,
|
||||
sequence="bag",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local format=string.format
|
||||
return{
|
||||
color=color.lGrey,
|
||||
color=COLOR.lGrey,
|
||||
env={
|
||||
drop=1e99,lock=1e99,
|
||||
oncehold=false,
|
||||
|
||||
@@ -27,7 +27,7 @@ local function check_rise(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.white,
|
||||
color=COLOR.white,
|
||||
env={
|
||||
drop=1e99,lock=1e99,
|
||||
oncehold=false,
|
||||
|
||||
@@ -17,7 +17,7 @@ local function check(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.magenta,
|
||||
color=COLOR.magenta,
|
||||
env={
|
||||
noTele=true,
|
||||
mindas=7,minarr=1,minsdarr=1,
|
||||
|
||||
@@ -14,7 +14,7 @@ local function check_LVup(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.green,
|
||||
color=COLOR.green,
|
||||
env={
|
||||
noTele=true,
|
||||
wait=8,fall=20,
|
||||
|
||||
@@ -21,7 +21,7 @@ local function check_LVup(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.yellow,
|
||||
color=COLOR.yellow,
|
||||
env={
|
||||
noTele=true,
|
||||
wait=8,fall=20,
|
||||
|
||||
@@ -40,7 +40,7 @@ local function score(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.red,
|
||||
color=COLOR.red,
|
||||
env={
|
||||
noTele=true,
|
||||
das=6,arr=1,
|
||||
|
||||
@@ -42,7 +42,7 @@ local function score(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.red,
|
||||
color=COLOR.red,
|
||||
env={
|
||||
noTele=true,
|
||||
das=9,arr=3,
|
||||
|
||||
@@ -40,7 +40,7 @@ local function score(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.lGrey,
|
||||
color=COLOR.lGrey,
|
||||
env={
|
||||
noTele=true,
|
||||
das=5,arr=1,
|
||||
|
||||
@@ -38,8 +38,8 @@ local function check_LVup(P)
|
||||
P.field[i][P:RND(10)]=0
|
||||
end
|
||||
else
|
||||
P.field[i]=freeRow.get(0)
|
||||
P.visTime[i]=freeRow.get(30)
|
||||
P.field[i]=FREEROW.get(0)
|
||||
P.visTime[i]=FREEROW.get(30)
|
||||
for j=1,10 do
|
||||
if P:RND()>.9 then
|
||||
P.field[i][j]=math.random(16)
|
||||
@@ -132,7 +132,7 @@ local function check_LVup(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.black,
|
||||
color=COLOR.black,
|
||||
env={
|
||||
noTele=true,
|
||||
das=5,arr=1,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return{
|
||||
color=color.magenta,
|
||||
color=COLOR.magenta,
|
||||
env={
|
||||
drop=60,lock=120,
|
||||
fall=10,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return{
|
||||
color=color.red,
|
||||
color=COLOR.red,
|
||||
env={
|
||||
drop=20,lock=60,
|
||||
fall=20,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return{
|
||||
color=color.green,
|
||||
color=COLOR.green,
|
||||
env={
|
||||
oncehold=false,
|
||||
drop=300,lock=1e99,
|
||||
|
||||
@@ -47,7 +47,7 @@ local function newPC(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.red,
|
||||
color=COLOR.red,
|
||||
env={
|
||||
next=4,
|
||||
hold=false,
|
||||
|
||||
@@ -40,7 +40,7 @@ local function newPC(P)
|
||||
end
|
||||
end
|
||||
return{
|
||||
color=color.green,
|
||||
color=COLOR.green,
|
||||
env={
|
||||
next=4,
|
||||
hold=false,
|
||||
|
||||
@@ -11,7 +11,7 @@ local function update_round(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.cyan,
|
||||
color=COLOR.cyan,
|
||||
env={
|
||||
drop=300,lock=300,
|
||||
oncehold=false,
|
||||
@@ -20,7 +20,7 @@ return{
|
||||
},
|
||||
load=function()
|
||||
PLY.newPlayer(1,340,15)
|
||||
PLY.newAIPlayer(2,965,360,.5,AITemplate("CC",10,1,true,10000))
|
||||
PLY.newAIPlayer(2,965,360,.5,AIBUILDER("CC",10,1,true,10000))
|
||||
GAME.garbageSpeed=1e99
|
||||
end,
|
||||
score=function(P)return{P.stat.piece,P.stat.time}end,
|
||||
|
||||
@@ -11,7 +11,7 @@ local function update_round(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.green,
|
||||
color=COLOR.green,
|
||||
env={
|
||||
drop=300,lock=300,
|
||||
oncehold=false,
|
||||
@@ -20,7 +20,7 @@ return{
|
||||
},
|
||||
load=function()
|
||||
PLY.newPlayer(1,340,15)
|
||||
PLY.newAIPlayer(2,965,360,.5,AITemplate("CC",10,1,true,13000))
|
||||
PLY.newAIPlayer(2,965,360,.5,AIBUILDER("CC",10,1,true,13000))
|
||||
GAME.garbageSpeed=1e99
|
||||
end,
|
||||
score=function(P)return{P.stat.piece,P.stat.time}end,
|
||||
|
||||
@@ -11,7 +11,7 @@ local function update_round(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.magenta,
|
||||
color=COLOR.magenta,
|
||||
env={
|
||||
drop=300,lock=300,
|
||||
oncehold=false,
|
||||
@@ -20,7 +20,7 @@ return{
|
||||
},
|
||||
load=function()
|
||||
PLY.newPlayer(1,340,15)
|
||||
PLY.newAIPlayer(2,965,360,.5,AITemplate("CC",10,2,true,16000))
|
||||
PLY.newAIPlayer(2,965,360,.5,AIBUILDER("CC",10,2,true,16000))
|
||||
GAME.garbageSpeed=1e99
|
||||
end,
|
||||
score=function(P)return{P.stat.piece,P.stat.time}end,
|
||||
|
||||
@@ -11,7 +11,7 @@ local function update_round(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.red,
|
||||
color=COLOR.red,
|
||||
env={
|
||||
drop=300,lock=300,
|
||||
oncehold=false,
|
||||
@@ -20,7 +20,7 @@ return{
|
||||
},
|
||||
load=function()
|
||||
PLY.newPlayer(1,340,15)
|
||||
PLY.newAIPlayer(2,965,360,.5,AITemplate("CC",10,3,true,26000))
|
||||
PLY.newAIPlayer(2,965,360,.5,AIBUILDER("CC",10,3,true,26000))
|
||||
GAME.garbageSpeed=1e99
|
||||
end,
|
||||
score=function(P)return{P.stat.piece,P.stat.time}end,
|
||||
|
||||
@@ -11,7 +11,7 @@ local function update_round(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.lYellow,
|
||||
color=COLOR.lYellow,
|
||||
env={
|
||||
drop=300,lock=300,
|
||||
oncehold=false,
|
||||
@@ -20,7 +20,7 @@ return{
|
||||
},
|
||||
load=function()
|
||||
PLY.newPlayer(1,340,15)
|
||||
PLY.newAIPlayer(2,965,360,.5,AITemplate("CC",10,3,true,40000))
|
||||
PLY.newAIPlayer(2,965,360,.5,AIBUILDER("CC",10,3,true,40000))
|
||||
GAME.garbageSpeed=1e99
|
||||
end,
|
||||
score=function(P)return{P.stat.piece,P.stat.time}end,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return{
|
||||
color=color.cyan,
|
||||
color=COLOR.cyan,
|
||||
env={
|
||||
life=2,
|
||||
drop=60,lock=60,
|
||||
@@ -9,7 +9,7 @@ return{
|
||||
pauseLimit=true,
|
||||
load=function()
|
||||
PLY.newPlayer(1,340,15)
|
||||
PLY.newAIPlayer(2,965,360,.5,AITemplate("9S",4))
|
||||
PLY.newAIPlayer(2,965,360,.5,AIBUILDER("9S",4))
|
||||
end,
|
||||
score=function(P)return{P.stat.time}end,
|
||||
scoreDisp=function(D)return toTime(D[1])end,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return{
|
||||
color=color.green,
|
||||
color=COLOR.green,
|
||||
env={
|
||||
life=2,
|
||||
drop=60,lock=60,
|
||||
@@ -9,7 +9,7 @@ return{
|
||||
pauseLimit=true,
|
||||
load=function()
|
||||
PLY.newPlayer(1,340,15)
|
||||
PLY.newAIPlayer(2,965,360,.5,AITemplate("9S",5))
|
||||
PLY.newAIPlayer(2,965,360,.5,AIBUILDER("9S",5))
|
||||
end,
|
||||
score=function(P)return{P.stat.time}end,
|
||||
scoreDisp=function(D)return toTime(D[1])end,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return{
|
||||
color=color.magenta,
|
||||
color=COLOR.magenta,
|
||||
env={
|
||||
life=2,
|
||||
drop=60,lock=60,
|
||||
@@ -9,7 +9,7 @@ return{
|
||||
pauseLimit=true,
|
||||
load=function()
|
||||
PLY.newPlayer(1,340,15)
|
||||
PLY.newAIPlayer(2,965,360,.5,AITemplate("9S",6))
|
||||
PLY.newAIPlayer(2,965,360,.5,AIBUILDER("9S",6))
|
||||
end,
|
||||
score=function(P)return{P.stat.time}end,
|
||||
scoreDisp=function(D)return toTime(D[1])end,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return{
|
||||
color=color.red,
|
||||
color=COLOR.red,
|
||||
env={
|
||||
life=2,
|
||||
drop=60,lock=60,
|
||||
@@ -9,7 +9,7 @@ return{
|
||||
pauseLimit=true,
|
||||
load=function()
|
||||
PLY.newPlayer(1,340,15)
|
||||
PLY.newAIPlayer(2,965,360,.5,AITemplate("CC",6,2,true,30000))
|
||||
PLY.newAIPlayer(2,965,360,.5,AIBUILDER("CC",6,2,true,30000))
|
||||
end,
|
||||
score=function(P)return{P.stat.time}end,
|
||||
scoreDisp=function(D)return toTime(D[1])end,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return{
|
||||
color=color.lYellow,
|
||||
color=COLOR.lYellow,
|
||||
env={
|
||||
life=2,
|
||||
drop=60,lock=60,
|
||||
@@ -9,7 +9,7 @@ return{
|
||||
pauseLimit=true,
|
||||
load=function()
|
||||
PLY.newPlayer(1,340,15)
|
||||
PLY.newAIPlayer(2,965,360,.5,AITemplate("CC",7,3,true,50000))
|
||||
PLY.newAIPlayer(2,965,360,.5,AIBUILDER("CC",7,3,true,50000))
|
||||
end,
|
||||
score=function(P)return{P.stat.time}end,
|
||||
scoreDisp=function(D)return toTime(D[1])end,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return{
|
||||
color=color.green,
|
||||
color=COLOR.green,
|
||||
env={
|
||||
drop=60,lock=180,
|
||||
noTele=true,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return{
|
||||
color=color.green,
|
||||
color=COLOR.green,
|
||||
env={
|
||||
drop=60,lock=180,
|
||||
keyCancel={3,4,5},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return{
|
||||
color=color.green,
|
||||
color=COLOR.green,
|
||||
env={
|
||||
drop=60,lock=60,
|
||||
next=0,hold=false,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return{
|
||||
color=color.green,
|
||||
color=COLOR.green,
|
||||
env={
|
||||
drop=60,lock=60,
|
||||
sequence="bag",bag={8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return{
|
||||
color=color.cyan,
|
||||
color=COLOR.cyan,
|
||||
env={
|
||||
drop=60,lock=60,
|
||||
target=10,dropPiece=PLY.check_lineReach,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return{
|
||||
color=color.red,
|
||||
color=COLOR.red,
|
||||
env={
|
||||
drop=60,lock=60,
|
||||
target=100,dropPiece=PLY.check_lineReach,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return{
|
||||
color=color.lGrey,
|
||||
color=COLOR.lGrey,
|
||||
env={
|
||||
drop=60,lock=60,
|
||||
target=1000,dropPiece=PLY.check_lineReach,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return{
|
||||
color=color.lBlue,
|
||||
color=COLOR.lBlue,
|
||||
env={
|
||||
drop=60,lock=60,
|
||||
target=20,dropPiece=PLY.check_lineReach,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return{
|
||||
color=color.green,
|
||||
color=COLOR.green,
|
||||
env={
|
||||
drop=60,lock=60,
|
||||
target=40,dropPiece=PLY.check_lineReach,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return{
|
||||
color=color.dRed,
|
||||
color=COLOR.dRed,
|
||||
env={
|
||||
drop=60,lock=60,
|
||||
target=400,dropPiece=PLY.check_lineReach,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local max=math.max
|
||||
return{
|
||||
color=color.cyan,
|
||||
color=COLOR.cyan,
|
||||
env={
|
||||
drop=30,lock=45,
|
||||
freshLimit=10,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local max=math.max
|
||||
return{
|
||||
color=color.magenta,
|
||||
color=COLOR.magenta,
|
||||
env={
|
||||
drop=30,lock=45,
|
||||
freshLimit=10,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local max=math.max
|
||||
return{
|
||||
color=color.red,
|
||||
color=COLOR.red,
|
||||
env={
|
||||
drop=30,lock=45,
|
||||
freshLimit=10,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local max=math.max
|
||||
return{
|
||||
color=color.green,
|
||||
color=COLOR.green,
|
||||
env={
|
||||
drop=30,lock=45,
|
||||
freshLimit=10,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local max=math.max
|
||||
return{
|
||||
color=color.lYellow,
|
||||
color=COLOR.lYellow,
|
||||
env={
|
||||
drop=5,lock=60,
|
||||
fall=10,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
local format=string.format
|
||||
local int=math.floor
|
||||
return{
|
||||
color=color.lYellow,
|
||||
color=COLOR.lYellow,
|
||||
env={
|
||||
arr=0,
|
||||
drop=1e99,lock=60,
|
||||
|
||||
@@ -13,7 +13,7 @@ local function tech_check_hard(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.grey,
|
||||
color=COLOR.grey,
|
||||
env={
|
||||
arr=0,
|
||||
drop=1e99,lock=60,
|
||||
|
||||
@@ -9,7 +9,7 @@ local function tech_check_easy(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.magenta,
|
||||
color=COLOR.magenta,
|
||||
env={
|
||||
drop=20,lock=60,
|
||||
freshLimit=15,
|
||||
|
||||
@@ -13,7 +13,7 @@ local function tech_check_hard(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.dMagenta,
|
||||
color=COLOR.dMagenta,
|
||||
env={
|
||||
drop=30,lock=60,
|
||||
freshLimit=15,
|
||||
|
||||
@@ -9,7 +9,7 @@ local function tech_check_easy(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.red,
|
||||
color=COLOR.red,
|
||||
env={
|
||||
drop=0,lock=60,
|
||||
freshLimit=15,
|
||||
|
||||
@@ -13,7 +13,7 @@ local function tech_check_hard(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.dRed,
|
||||
color=COLOR.dRed,
|
||||
env={
|
||||
drop=0,lock=60,
|
||||
freshLimit=15,
|
||||
|
||||
@@ -9,7 +9,7 @@ local function tech_check_easy(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.green,
|
||||
color=COLOR.green,
|
||||
env={
|
||||
oncehold=false,
|
||||
drop=1e99,lock=1e99,
|
||||
|
||||
@@ -13,7 +13,7 @@ local function tech_check_hard(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.dGreen,
|
||||
color=COLOR.dGreen,
|
||||
env={
|
||||
oncehold=false,
|
||||
drop=1e99,lock=1e99,
|
||||
|
||||
@@ -16,7 +16,7 @@ local function selectTarget(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.cyan,
|
||||
color=COLOR.cyan,
|
||||
env={
|
||||
drop=60,lock=60,
|
||||
fall=20,
|
||||
@@ -41,17 +41,17 @@ return{
|
||||
local n=2
|
||||
for i=1,4 do for j=1,6 do
|
||||
if L[n]then
|
||||
PLY.newAIPlayer(n,78*i-54,115*j-98,.09,AITemplate("9S",rnd(4,6)))
|
||||
PLY.newAIPlayer(n,78*i-54,115*j-98,.09,AIBUILDER("9S",rnd(4,6)))
|
||||
else
|
||||
PLY.newAIPlayer(n,78*i-54,115*j-98,.09,AITemplate("CC",rnd(2,4),2,true,20000))
|
||||
PLY.newAIPlayer(n,78*i-54,115*j-98,.09,AIBUILDER("CC",rnd(2,4),2,true,20000))
|
||||
end
|
||||
n=n+1
|
||||
end end
|
||||
for i=9,12 do for j=1,6 do
|
||||
if L[n]then
|
||||
PLY.newAIPlayer(n,78*i+267,115*j-98,.09,AITemplate("9S",rnd(4,5)))
|
||||
PLY.newAIPlayer(n,78*i+267,115*j-98,.09,AIBUILDER("9S",rnd(4,5)))
|
||||
else
|
||||
PLY.newAIPlayer(n,78*i+267,115*j-98,.09,AITemplate("CC",rnd(3,5),2,true,20000))
|
||||
PLY.newAIPlayer(n,78*i+267,115*j-98,.09,AIBUILDER("CC",rnd(3,5),2,true,20000))
|
||||
end
|
||||
n=n+1
|
||||
end end
|
||||
|
||||
@@ -16,7 +16,7 @@ local function selectTarget(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.magenta,
|
||||
color=COLOR.magenta,
|
||||
env={
|
||||
drop=60,lock=60,
|
||||
fall=20,
|
||||
@@ -41,17 +41,17 @@ return{
|
||||
local n=2
|
||||
for i=1,4 do for j=1,6 do
|
||||
if L[n]then
|
||||
PLY.newAIPlayer(n,78*i-54,115*j-98,.09,AITemplate("9S",rnd(4,8)))
|
||||
PLY.newAIPlayer(n,78*i-54,115*j-98,.09,AIBUILDER("9S",rnd(4,8)))
|
||||
else
|
||||
PLY.newAIPlayer(n,78*i-54,115*j-98,.09,AITemplate("CC",rnd(3,6),3,true,30000))
|
||||
PLY.newAIPlayer(n,78*i-54,115*j-98,.09,AIBUILDER("CC",rnd(3,6),3,true,30000))
|
||||
end
|
||||
n=n+1
|
||||
end end
|
||||
for i=9,12 do for j=1,6 do
|
||||
if L[n]then
|
||||
PLY.newAIPlayer(n,78*i+267,115*j-98,.09,AITemplate("9S",rnd(4,7)))
|
||||
PLY.newAIPlayer(n,78*i+267,115*j-98,.09,AIBUILDER("9S",rnd(4,7)))
|
||||
else
|
||||
PLY.newAIPlayer(n,78*i+267,115*j-98,.09,AITemplate("CC",rnd(4,6),3,true,30000))
|
||||
PLY.newAIPlayer(n,78*i+267,115*j-98,.09,AIBUILDER("CC",rnd(4,6),3,true,30000))
|
||||
end
|
||||
n=n+1
|
||||
end end
|
||||
|
||||
@@ -16,7 +16,7 @@ local function selectTarget(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.lYellow,
|
||||
color=COLOR.lYellow,
|
||||
env={
|
||||
drop=15,lock=60,
|
||||
fall=20,
|
||||
@@ -41,17 +41,17 @@ return{
|
||||
local n=2
|
||||
for i=1,4 do for j=1,6 do
|
||||
if L[n]then
|
||||
PLY.newAIPlayer(n,78*i-54,115*j-98,.09,AITemplate("9S",rnd(8,10)))
|
||||
PLY.newAIPlayer(n,78*i-54,115*j-98,.09,AIBUILDER("9S",rnd(8,10)))
|
||||
else
|
||||
PLY.newAIPlayer(n,78*i-54,115*j-98,.09,AITemplate("CC",rnd(4,7),3,true,40000))
|
||||
PLY.newAIPlayer(n,78*i-54,115*j-98,.09,AIBUILDER("CC",rnd(4,7),3,true,40000))
|
||||
end
|
||||
n=n+1
|
||||
end end
|
||||
for i=9,12 do for j=1,6 do
|
||||
if L[n]then
|
||||
PLY.newAIPlayer(n,78*i+267,115*j-98,.09,AITemplate("9S",rnd(8,9)))
|
||||
PLY.newAIPlayer(n,78*i+267,115*j-98,.09,AIBUILDER("9S",rnd(8,9)))
|
||||
else
|
||||
PLY.newAIPlayer(n,78*i+267,115*j-98,.09,AITemplate("CC",rnd(5,8),3,true,40000))
|
||||
PLY.newAIPlayer(n,78*i+267,115*j-98,.09,AIBUILDER("CC",rnd(5,8),3,true,40000))
|
||||
end
|
||||
n=n+1
|
||||
end end
|
||||
|
||||
@@ -16,7 +16,7 @@ local function selectTarget(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.cyan,
|
||||
color=COLOR.cyan,
|
||||
env={
|
||||
drop=60,lock=60,
|
||||
fall=20,
|
||||
@@ -41,17 +41,17 @@ return{
|
||||
local n=2
|
||||
for i=1,7 do for j=1,7 do
|
||||
if L[n]then
|
||||
PLY.newAIPlayer(n,46*i-36,97*j-72,.068,AITemplate("9S",rnd(4,6)))
|
||||
PLY.newAIPlayer(n,46*i-36,97*j-72,.068,AIBUILDER("9S",rnd(4,6)))
|
||||
else
|
||||
PLY.newAIPlayer(n,46*i-36,97*j-72,.068,AITemplate("CC",rnd(2,4),2,true,20000))
|
||||
PLY.newAIPlayer(n,46*i-36,97*j-72,.068,AIBUILDER("CC",rnd(2,4),2,true,20000))
|
||||
end
|
||||
n=n+1
|
||||
end end
|
||||
for i=15,21 do for j=1,7 do
|
||||
if L[n]then
|
||||
PLY.newAIPlayer(n,46*i+264,97*j-72,.068,AITemplate("9S",rnd(4,5)))
|
||||
PLY.newAIPlayer(n,46*i+264,97*j-72,.068,AIBUILDER("9S",rnd(4,5)))
|
||||
else
|
||||
PLY.newAIPlayer(n,46*i+264,97*j-72,.068,AITemplate("CC",rnd(3,5),2,true,20000))
|
||||
PLY.newAIPlayer(n,46*i+264,97*j-72,.068,AIBUILDER("CC",rnd(3,5),2,true,20000))
|
||||
end
|
||||
n=n+1
|
||||
end end
|
||||
|
||||
@@ -16,7 +16,7 @@ local function selectTarget(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.magenta,
|
||||
color=COLOR.magenta,
|
||||
env={
|
||||
drop=60,lock=60,
|
||||
fall=20,
|
||||
@@ -41,17 +41,17 @@ return{
|
||||
local n=2
|
||||
for i=1,7 do for j=1,7 do
|
||||
if L[n]then
|
||||
PLY.newAIPlayer(n,46*i-36,97*j-72,.068,AITemplate("9S",rnd(4,8)))
|
||||
PLY.newAIPlayer(n,46*i-36,97*j-72,.068,AIBUILDER("9S",rnd(4,8)))
|
||||
else
|
||||
PLY.newAIPlayer(n,46*i-36,97*j-72,.068,AITemplate("CC",rnd(3,6),3,true,30000))
|
||||
PLY.newAIPlayer(n,46*i-36,97*j-72,.068,AIBUILDER("CC",rnd(3,6),3,true,30000))
|
||||
end
|
||||
n=n+1
|
||||
end end
|
||||
for i=15,21 do for j=1,7 do
|
||||
if L[n]then
|
||||
PLY.newAIPlayer(n,46*i+264,97*j-72,.068,AITemplate("9S",rnd(4,7)))
|
||||
PLY.newAIPlayer(n,46*i+264,97*j-72,.068,AIBUILDER("9S",rnd(4,7)))
|
||||
else
|
||||
PLY.newAIPlayer(n,46*i+264,97*j-72,.068,AITemplate("CC",rnd(4,6),3,true,30000))
|
||||
PLY.newAIPlayer(n,46*i+264,97*j-72,.068,AIBUILDER("CC",rnd(4,6),3,true,30000))
|
||||
end
|
||||
n=n+1
|
||||
end end
|
||||
|
||||
@@ -16,7 +16,7 @@ local function selectTarget(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.lYellow,
|
||||
color=COLOR.lYellow,
|
||||
env={
|
||||
drop=15,lock=60,
|
||||
fall=20,
|
||||
@@ -41,17 +41,17 @@ return{
|
||||
local n=2
|
||||
for i=1,7 do for j=1,7 do
|
||||
if L[n]then
|
||||
PLY.newAIPlayer(n,46*i-36,97*j-72,.068,AITemplate("9S",rnd(8,10)))
|
||||
PLY.newAIPlayer(n,46*i-36,97*j-72,.068,AIBUILDER("9S",rnd(8,10)))
|
||||
else
|
||||
PLY.newAIPlayer(n,46*i-36,97*j-72,.068,AITemplate("CC",rnd(4,7),3,true,40000))
|
||||
PLY.newAIPlayer(n,46*i-36,97*j-72,.068,AIBUILDER("CC",rnd(4,7),3,true,40000))
|
||||
end
|
||||
n=n+1
|
||||
end end
|
||||
for i=15,21 do for j=1,7 do
|
||||
if L[n]then
|
||||
PLY.newAIPlayer(n,46*i+264,97*j-72,.068,AITemplate("9S",rnd(8,9)))
|
||||
PLY.newAIPlayer(n,46*i+264,97*j-72,.068,AIBUILDER("9S",rnd(8,9)))
|
||||
else
|
||||
PLY.newAIPlayer(n,46*i+264,97*j-72,.068,AITemplate("CC",rnd(5,8),3,true,40000))
|
||||
PLY.newAIPlayer(n,46*i+264,97*j-72,.068,AIBUILDER("CC",rnd(5,8),3,true,40000))
|
||||
end
|
||||
n=n+1
|
||||
end end
|
||||
|
||||
@@ -10,7 +10,7 @@ local function check_tsd(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.green,
|
||||
color=COLOR.green,
|
||||
env={
|
||||
drop=1e99,lock=1e99,
|
||||
oncehold=false,
|
||||
|
||||
@@ -10,7 +10,7 @@ local function check_tsd(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.magenta,
|
||||
color=COLOR.magenta,
|
||||
env={
|
||||
drop=60,lock=60,
|
||||
freshLimit=15,
|
||||
|
||||
@@ -10,7 +10,7 @@ local function check_tsd(P)
|
||||
end
|
||||
|
||||
return{
|
||||
color=color.lYellow,
|
||||
color=COLOR.lYellow,
|
||||
env={
|
||||
drop=60,lock=60,
|
||||
freshLimit=15,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
local gc=love.graphics
|
||||
local warnTime={60,90,105,115,116,117,118,119,120}
|
||||
return{
|
||||
color=color.lGrey,
|
||||
color=COLOR.lGrey,
|
||||
env={
|
||||
noTele=true,
|
||||
minarr=1,minsdarr=1,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return{
|
||||
color=color.lGrey,
|
||||
color=COLOR.lGrey,
|
||||
env={
|
||||
drop=120,lock=120,
|
||||
oncehold=false,
|
||||
|
||||
Reference in New Issue
Block a user