全新自定义游戏设置界面

This commit is contained in:
MrZ626
2020-09-17 18:17:06 +08:00
parent 3099043c62
commit 43874a09db
8 changed files with 255 additions and 307 deletions

View File

@@ -6,12 +6,9 @@ return{
dropPiece=PLY.check_lineReach,
},
load=function()
for i=1,#customID do
local k=customID[i]
modeEnv[k]=customRange[k][customSel[i]]
for k,v in next,customEnv do
modeEnv[k]=v
end
modeEnv._20G=modeEnv.drop==0
modeEnv.oncehold=customSel[6]==1
if preBag[1]then
modeEnv.bag=preBag
else
@@ -21,10 +18,10 @@ return{
local L=modeEnv.opponent
if L~=0 then
modeEnv.target=nil
if L<10 then
if L<6 then
PLY.newAIPlayer(2,965,360,.5,AITemplate("9S",2*L))
else
PLY.newAIPlayer(2,965,360,.5,AITemplate("CC",L-6,2+int((L-11)*.5),modeEnv.hold,15000+5000*(L-10)))
PLY.newAIPlayer(2,965,360,.5,AITemplate("CC",L,int(L*.5-1.5),modeEnv.hold,4000*L))
end
end
preField.h=20
@@ -46,8 +43,8 @@ return{
end
P.garbageBeneath=preField.h
end
modeEnv.bg=customRange.bg[customSel[12]]
modeEnv.bgm=customRange.bgm[customSel[13]]
modeEnv.bg=customEnv.bg
modeEnv.bgm=customEnv.bgm
end,
mesDisp=function(P,dx,dy)
setFont(55)