eventSet可以修改所有参数

整理代码
This commit is contained in:
MrZ626
2021-08-31 00:42:52 +08:00
parent 3114d3a27d
commit f252ed63d5
19 changed files with 110 additions and 128 deletions

View File

@@ -1,4 +1,21 @@
return{
das=16,
arr=6,
sddas=2,
sdarr=2,
irs=false,
ims=false,
drop=3,
lock=3,
wait=10,
fall=25,
fieldH=19,
nextCount=1,
holdCount=0,
RS='Classic',
sequence='rnd',
noTele=true,
keyCancel={5,6},
mesDisp=function(P)
setFont(75)
local r=P.modeData.target*.1
@@ -7,25 +24,6 @@ return{
PLY.draw.drawProgress(P.stat.row,P.modeData.target)
end,
task=function(P)
P.gameEnv.das=16
P.gameEnv.arr=6
P.gameEnv.sddas=2
P.gameEnv.sdarr=2
P.gameEnv.irs=false
P.gameEnv.ims=false
P.gameEnv.drop=3
P.lockDelay=3
P.gameEnv.lock=3
P.gameEnv.wait=10
P.gameEnv.fall=25
P.gameEnv.fieldH=19
P.gameEnv.nextCount=1
P.gameEnv.holdCount=0
P.gameEnv.RS='Classic'
P.gameEnv.sequence='rnd'
P.gameEnv.noTele=true
P.gameEnv.keyCancel={5,6}
P.modeData.target=10
end,
dropPiece=function(P)

View File

@@ -1,15 +1,14 @@
local dropSpeed={50,40,30,25,20,15,12,9,7,5,4,3,2,1,1,.5,.5,.25,.25}
return{
drop=60,
wait=8,
fall=20,
mesDisp=function(P)
PLY.draw.drawProgress(P.stat.row,P.modeData.target)
PLY.draw.drawTargetLine(P,200-P.stat.row)
end,
task=function(P)
P.gameEnv.drop=60
P.gameEnv.wait=8
P.gameEnv.fall=20
P.modeData.target=10
end,
dropPiece=function(P)

View File

@@ -1,14 +1,13 @@
return
{
drop=.5,
wait=8,
fall=20,
mesDisp=function(P)
PLY.draw.drawProgress(P.stat.row,P.modeData.target)
PLY.draw.drawTargetLine(P,200-P.stat.row)
end,
task=function(P)
P.gameEnv.drop=.5
P.gameEnv.wait=8
P.gameEnv.fall=20
P.modeData.target=50
end,
dropPiece=function(P)

View File

@@ -2,15 +2,14 @@ local dropSpeed={50,40,30,24,18,14,10,8,6,5,4,3,2,1,1,.5,.5,.25,.25}
return
{
drop=60,
wait=8,
fall=20,
mesDisp=function(P)
PLY.draw.drawProgress(P.stat.row,P.modeData.target)
PLY.draw.drawTargetLine(P,200-P.stat.row)
end,
task=function(P)
P.gameEnv.drop=60
P.gameEnv.wait=8
P.gameEnv.fall=20
P.modeData.target=10
end,
dropPiece=function(P)

View File

@@ -2,6 +2,10 @@ local sectionName={"D","C","B","A","A+","S-","S","S+","S+","SS","SS","U","U","X"
local passPoint=16
return{
drop=0,
lock=15,
wait=15,
fall=6,
mesDisp=function(P)
mText(drawableText.line,63,310)
mText(drawableText.techrash,63,420)
@@ -25,12 +29,6 @@ return{
end
end,
task=function(P)
P:set20G(true)
P.lockDelay=15
P.gameEnv.lock=15
P.gameEnv.wait=15
P.gameEnv.fall=6
P.modeData.rankPoint=0
P.modeData.rankName=sectionName[1]
while true do

View File

@@ -1,4 +1,8 @@
return{
drop=0,
lock=12,
wait=10,
fall=10,
mesDisp=function(P)
PLY.draw.drawProgress(P.modeData.pt,P.modeData.target)
end,
@@ -42,12 +46,6 @@ return{
end
end,
task=function(P)
P:set20G(true)
P.lockDelay=12
P.gameEnv.lock=12
P.gameEnv.wait=10
P.gameEnv.fall=10
P.modeData.pt=0
P.modeData.target=100
end,

View File

@@ -3,6 +3,10 @@ local death_wait={10,9, 8, 7,6, 6,6,5,5,4}
local death_fall={10,9, 8, 7,6, 6,5,5,4,4}
return{
drop=0,
lock=death_lock[1],
wait=death_wait[1],
fall=death_fall[1],
mesDisp=function(P)
PLY.draw.drawProgress(P.modeData.pt,P.modeData.target)
end,
@@ -58,12 +62,6 @@ return{
end
end,
task=function(P)
P:set20G(true)
P.lockDelay=death_lock[1]
P.gameEnv.lock=death_lock[1]
P.gameEnv.wait=death_wait[1]
P.gameEnv.fall=death_fall[1]
P.modeData.pt=0
P.modeData.target=100
end,

View File

@@ -3,6 +3,10 @@ local rush_wait={12,10, 9, 8, 7}
local rush_fall={18,16,14,13,12}
return{
drop=0,
lock=rush_lock[1],
wait=rush_wait[1],
fall=rush_fall[1],
mesDisp=function(P)
PLY.draw.drawProgress(P.modeData.pt,P.modeData.target)
end,
@@ -44,12 +48,6 @@ return{
end
end,
task=function(P)
P:set20G(true)
P.lockDelay=rush_lock[1]
P.gameEnv.lock=rush_lock[1]
P.gameEnv.wait=rush_wait[1]
P.gameEnv.fall=rush_fall[1]
P.modeData.pt=0
P.modeData.target=100
end,

View File

@@ -1,18 +1,16 @@
return
{
das=6,
arr=2,
drop=0,
lock=15,
wait=6,
fall=2,
mesDisp=function(P)
PLY.draw.drawProgress(P.stat.row,P.modeData.target)
PLY.draw.drawTargetLine(P,200-P.stat.row)
end,
task=function(P)
P.gameEnv.das=6
P.gameEnv.arr=2
P:set20G(true)
P.gameEnv.lock=15
P.lockDelay=15
P.gameEnv.wait=6
P.gameEnv.fall=2
P.modeData.target=10
end,
dropPiece=function(P)

View File

@@ -3,6 +3,10 @@ local rush_wait={12,11,11,10,10, 10,10, 9, 9, 9}
local rush_fall={18,16,14,13,12, 12,11,11,10,10}
return{
drop=0,
lock=rush_lock[1],
wait=rush_wait[1],
fall=rush_fall[1],
mesDisp=function(P)
PLY.draw.drawProgress(P.modeData.pt,P.modeData.target)
end,
@@ -58,12 +62,6 @@ return{
end
end,
task=function(P)
P:set20G(true)
P.lockDelay=rush_lock[1]
P.gameEnv.lock=rush_lock[1]
P.gameEnv.wait=rush_wait[1]
P.gameEnv.fall=rush_fall[1]
P.modeData.pt=0
P.modeData.target=100
end,

View File

@@ -1,5 +1,9 @@
return
{
drop=0,
lock=15,
wait=10,
fall=10,
mesDisp=function(P)
PLY.draw.drawProgress(P.modeData.pt,P.modeData.target)
end,
@@ -133,11 +137,6 @@ return
P.modeData.pt=p
end,
task=function(P)
P:set20G(true)
P.lockDelay=15
P.gameEnv.lock=15
P.gameEnv.wait=10
P.gameEnv.fall=10
P.modeData.target=12
end,
}

View File

@@ -3,6 +3,10 @@ local death_wait={10, 9, 8,7,6, 6,5,4,4,3}
local death_fall={10, 9, 8,7,6, 5,5,4,3,3}
return{
drop=0,
lock=death_lock[1],
wait=death_wait[1],
fall=death_fall[1],
mesDisp=function(P)
PLY.draw.drawProgress(P.modeData.pt,P.modeData.target)
end,
@@ -53,12 +57,6 @@ return{
end
end,
task=function(P)
P:set20G(true)
P.lockDelay=death_lock[1]
P.gameEnv.lock=death_lock[1]
P.gameEnv.wait=death_wait[1]
P.gameEnv.fall=death_fall[1]
P.modeData.pt=0
P.modeData.target=100
end,

View File

@@ -1,12 +1,10 @@
return{
heightLimit=4,
mesDisp=function(P)
setFont(60)
mStr(P.stat.pc,63,340)
mText(drawableText.pc,63,410)
end,
task=function(P)
P.gameEnv.heightLimit=4
end,
dropPiece=function(P)
if P.lastPiece.pc then
P.gameEnv.heightLimit=4

View File

@@ -2,6 +2,10 @@ local gc=love.graphics
local dropSpeed={[0]=40,33,27,20,16,12,11,10,9,8,7,6,5,4,3,3,2,2,1,1}
return{
drop=40,
lock=1e99,
wait=20,
fall=90,
mesDisp=function(P)
PLY.draw.drawProgress(P.stat.row,P.modeData.target)
@@ -32,11 +36,6 @@ return{
end
end,
task=function(P)
P.gameEnv.drop=40
P.gameEnv.lock=1e99
P.gameEnv.wait=20
P.gameEnv.fall=90
P.modeData.target=10
P.modeData.bpm=40
P.modeData.beatFrame=90

View File

@@ -2,6 +2,10 @@ local gc=love.graphics
local dropSpeed={[0]=30,26,23,20,17,14,12,10,8,6,5,4,3,2,1,1,.5,.5,.25,.25}
return{
drop=30,
lock=1e99,
wait=10,
fall=60,
mesDisp=function(P)
PLY.draw.drawProgress(P.stat.row,P.modeData.target)
@@ -32,11 +36,6 @@ return{
end
end,
task=function(P)
P.gameEnv.drop=30
P.gameEnv.lock=1e99
P.gameEnv.wait=10
P.gameEnv.fall=60
P.modeData.target=10
P.modeData.bpm=60
P.modeData.beatFrame=60

View File

@@ -1,6 +1,10 @@
local gc=love.graphics
return{
drop=.5,
lock=1e99,
wait=5,
fall=30,
mesDisp=function(P)
PLY.draw.drawProgress(P.stat.row,P.modeData.target)
@@ -37,11 +41,6 @@ return{
end
end,
task=function(P)
P.gameEnv.drop=.5
P.gameEnv.lock=1e99
P.gameEnv.wait=5
P.gameEnv.fall=30
P.modeData.target=10
P.modeData.bpm=120
P.modeData.beatFrame=30