Zframework finished

This commit is contained in:
MrZ_26
2020-07-08 20:26:28 +08:00
parent cdd5194108
commit a3302ab2bc
47 changed files with 308 additions and 275 deletions

View File

@@ -23,9 +23,8 @@ return{
end
B.sum=B.sum+22
P.stat.recv=P.stat.recv+22
if D.event<50 then
D.event=D.event+1
D.point=int(72e4/t)*.1
D.event=D.event+1
if D.event%10==0 then
if D.event==20 then
P:showTextF(text.great,0,-140,100,"appear",.6)
P.gameEnv.pushSpeed=3

View File

@@ -1,4 +1,4 @@
local int,rnd=math.floor,math.random
local int,rnd,min=math.floor,math.random,math.min
return{
color=color.lightYellow,
env={
@@ -7,32 +7,31 @@ return{
freshLimit=15,
task=function(P)
if not(P.control and SCN.cur=="play")then return end
if P.atkBuffer.sum<2 then
if P.atkBuffer.sum<4 then
local p=#P.atkBuffer+1
local B,D=P.atkBuffer,P.modeData
local s,t
if D.event<10 then
t=1000-20*D.event--1000~800
B[p]= {pos=rnd(5,6),amount=10,countdown=t,cd0=t,time=0,sent=false,lv=3}
B[p+1]= {pos=rnd(4,7),amount=12,countdown=t,cd0=t,time=0,sent=false,lv=4}
s=22
t=800-10*D.event--800~700
B[p]= {pos=rnd(5,6),amount=9,countdown=t,cd0=t,time=0,sent=false,lv=3}
B[p+1]= {pos=rnd(4,7),amount=11,countdown=t,cd0=t+62,time=0,sent=false,lv=4}
s=20
elseif D.event<20 then
t=800-20*(D.event-15)--800~600
t=800-10*D.event--700~600
B[p]= {pos=rnd(3,8),amount=11,countdown=t,cd0=t,time=0,sent=false,lv=4}
B[p+1]= {pos=rnd(4,7),amount=14,countdown=t,cd0=t,time=0,sent=false,lv=5}
s=25
B[p+1]= {pos=rnd(4,7),amount=13,countdown=t,cd0=t+62,time=0,sent=false,lv=5}
s=24
else
t=600-15*(D.event-30)--600~450
B[p]= {pos=rnd(2)*9-8,amount=12,countdown=t,cd0=t,time=0,sent=false,lv=5}
B[p+1]= {pos=rnd(3,8),amount=16,countdown=t,cd0=t,time=0,sent=false,lv=5}
t=600-15*(min(D.event-20,10))--600~450
B[p]= {pos=rnd(2)*9-8,amount=14,countdown=t,cd0=t,time=0,sent=false,lv=5}
B[p+1]= {pos=rnd(3,8),amount=14,countdown=t+62,cd0=t,time=0,sent=false,lv=5}
s=28
end
B.sum=B.sum+s
P.stat.recv=P.stat.recv+s
if D.event<45 then
D.event=D.event+1
D.point=int(s*36e3/t)*.1
if D.event==10 then
D.event=D.event+1
if D.event%10==0 then
if D.event==10 then
P:showTextF(text.great,0,-140,100,"appear",.6)
P.gameEnv.pushSpeed=4
elseif D.event==20 then

View File

@@ -59,7 +59,7 @@ return{
if L==100 then
local T=P.stat.time
return
T<=40 and 5 or
T<=36 and 5 or
T<=60 and 4 or
3
else

View File

@@ -57,7 +57,7 @@ return{
if L==100 then
local T=P.stat.time
return
T<=30 and 5 or
T<=32 and 5 or
T<=50 and 4 or
T<=80 and 3 or
2

View File

@@ -31,7 +31,7 @@ local function newPC(P)
P.modeData.symmetry=symmetry
P:pushNext(L,symmetry)
P.modeData.counter=P.stat.piece==0 and 20 or 0
TASK.new(task_PC,P)
P:newTask(task_PC)
local s=P.stat.pc*.25
if int(s)==s and s>0 then

View File

@@ -37,7 +37,7 @@ local function newPC(P)
P.modeData.symmetry=symmetry
P:pushNext(L,symmetry)
P.modeData.counter=P.stat.piece==0 and 20 or 0
TASK.new(task_PC,P)
P:newTask(task_PC)
end
end
return{

View File

@@ -32,8 +32,8 @@ return{
T<=62 and 5 or
T<=90 and 4 or
T<=130 and 3 or
T<=200 and 2 or
T<=360 and 1 or
T<=196 and 2 or
T<=260 and 1 or
0
end,
}

View File

@@ -32,8 +32,8 @@ return{
T<=626 and 5 or
T<=1000 and 4 or
T<=1400 and 3 or
T<=2260 and 2 or
T<=3260 and 1 or
T<=2060 and 2 or
T<=2600 and 1 or
0
end,
}

View File

@@ -32,8 +32,8 @@ return{
T<=255 and 5 or
T<=326 and 4 or
T<=462 and 3 or
T<=626 and 2 or
T<=1260 and 1 or
T<=555 and 2 or
T<=626 and 1 or
0
end,
}

View File

@@ -3,6 +3,9 @@ local function tech_check_hard(P)
if #P.clearedRow>0 and P.lastClear<10 or P.lastClear==74 then
P:lose()
end
if P.stat.row>=200 then
P:win("finish")
end
end
return{

View File

@@ -3,6 +3,9 @@ local function tech_check_easy(P)
if #P.clearedRow>0 and P.b2b<40 then
P:lose()
end
if P.stat.row>=200 then
P:win("finish")
end
end
return{

View File

@@ -3,6 +3,9 @@ local function tech_check_hard(P)
if #P.clearedRow>0 and P.lastClear<10 or P.lastClear==74 then
P:lose()
end
if P.stat.row>=200 then
P:win("finish")
end
end
return{

View File

@@ -3,6 +3,9 @@ local function tech_check_easy(P)
if #P.clearedRow>0 and P.b2b<40 then
P:lose()
end
if P.stat.row>=200 then
P:win("finish")
end
end
return{

View File

@@ -3,6 +3,9 @@ local function tech_check_hard(P)
if #P.clearedRow>0 and P.lastClear<10 or P.lastClear==74 then
P:lose()
end
if P.stat.row>=200 then
P:win("finish")
end
end
return{

View File

@@ -3,6 +3,9 @@ local function tech_check_easy(P)
if #P.clearedRow>0 and P.b2b<40 then
P:lose()
end
if P.stat.row>=200 then
P:win("finish")
end
end
return{

View File

@@ -3,6 +3,9 @@ local function tech_check_hard(P)
if #P.clearedRow>0 and P.lastClear<10 or P.lastClear==74 then
P:lose()
end
if P.stat.row>=200 then
P:win("finish")
end
end
return{

View File

@@ -7,6 +7,7 @@ return{
drop=1e99,lock=60,
freshLimit=15,
target=200,
dropPiece=PLY.reach_winCheck,
fineKill=true,
bg="flink",bgm="infinite",
},