整理代码
This commit is contained in:
157
parts/list.lua
157
parts/list.lua
@@ -1,5 +1,3 @@
|
|||||||
local sin,cos=math.sin,math.cos
|
|
||||||
|
|
||||||
title={
|
title={
|
||||||
{
|
{
|
||||||
53, 60,
|
53, 60,
|
||||||
@@ -150,90 +148,86 @@ title2[5]={
|
|||||||
}
|
}
|
||||||
]]
|
]]
|
||||||
|
|
||||||
title_fan={}
|
do--title_fan
|
||||||
for i=1,8 do
|
local sin,cos=math.sin,math.cos
|
||||||
local L={}
|
title_fan={}
|
||||||
title_fan[i]=L
|
for i=1,8 do
|
||||||
for j=1,#title[i]do
|
local L={}
|
||||||
L[j]=title[i][j]
|
title_fan[i]=L
|
||||||
end
|
for j=1,#title[i]do
|
||||||
for j=1,#L,2 do
|
L[j]=title[i][j]
|
||||||
local x,y=L[j],L[j+1]--0<x<3041, 290<y<1280
|
end
|
||||||
x,y=-(x+240+y*.3)*.002,(y-580)*.9
|
for j=1,#L,2 do
|
||||||
x,y=y*cos(x),-y*sin(x)--Rec-Pol-Rec
|
local x,y=L[j],L[j+1]--0<x<3041, 290<y<1280
|
||||||
L[j],L[j+1]=x,y+300
|
x,y=-(x+240+y*.3)*.002,(y-580)*.9
|
||||||
|
x,y=y*cos(x),-y*sin(x)--Rec-Pol-Rec
|
||||||
|
L[j],L[j+1]=x,y+300
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
missionEnum={
|
do--missionEnum
|
||||||
_1=01,_2=02,_3=03,_4=04,
|
missionEnum={
|
||||||
A1=05,A2=06,A3=07,A4=08,
|
_1=01,_2=02,_3=03,_4=04,
|
||||||
PC=09,
|
A1=05,A2=06,A3=07,A4=08,
|
||||||
Z1=11,Z2=12,Z3=13,
|
PC=09,
|
||||||
S1=21,S2=22,S3=23,
|
Z1=11,Z2=12,Z3=13,
|
||||||
J1=31,J2=32,J3=33,
|
S1=21,S2=22,S3=23,
|
||||||
L1=41,L2=42,L3=43,
|
J1=31,J2=32,J3=33,
|
||||||
T1=51,T2=52,T3=53,
|
L1=41,L2=42,L3=43,
|
||||||
O1=61,O2=62,O3=63,O4=64,
|
T1=51,T2=52,T3=53,
|
||||||
I1=71,I2=72,I3=73,I4=74,
|
O1=61,O2=62,O3=63,O4=64,
|
||||||
}
|
I1=71,I2=72,I3=73,I4=74,
|
||||||
local _={}
|
}
|
||||||
for k,v in next,missionEnum do _[v]=k end
|
local _={}
|
||||||
for k,v in next,_ do missionEnum[k]=v end
|
for k,v in next,missionEnum do _[v]=k end
|
||||||
|
for k,v in next,_ do missionEnum[k]=v end
|
||||||
|
end
|
||||||
|
|
||||||
rankColor={
|
do--drawableTextLoad, drawableText
|
||||||
COLOR.dRed, --D
|
local function T(s,t)return love.graphics.newText(getFont(s),t)end
|
||||||
COLOR.dOrange, --C
|
drawableTextLoad={
|
||||||
COLOR.lYellow, --B
|
"anykey",
|
||||||
COLOR.lBlue, --A
|
"replaying",
|
||||||
COLOR.lCyan, --S
|
"next","hold",
|
||||||
COLOR.lGreen, --Special
|
"win","finish","gameover","pause",
|
||||||
}
|
|
||||||
|
|
||||||
local function T(s,t)return love.graphics.newText(getFont(s),t)end
|
"speedLV",
|
||||||
drawableTextLoad={
|
"line","atk","eff",
|
||||||
"anykey",
|
"rpm","tsd",
|
||||||
"replaying",
|
"grade","techrash",
|
||||||
"next","hold",
|
"wave","nextWave",
|
||||||
"win","finish","gameover","pause",
|
"combo","maxcmb",
|
||||||
|
"pc","ko",
|
||||||
|
|
||||||
"speedLV",
|
"VKTchW","VKOrgW","VKCurW",
|
||||||
"line","atk","eff",
|
"noScore","highScore",
|
||||||
"rpm","tsd",
|
}
|
||||||
"grade","techrash",
|
drawableText={
|
||||||
"wave","nextWave",
|
question=T(100,"?"),
|
||||||
"combo","maxcmb",
|
small=T(30,"<"),large=T(30,">"),
|
||||||
"pc","ko",
|
bpm=T(15,"BPM"),kpm=T(15,"KPM"),
|
||||||
|
|
||||||
"VKTchW","VKOrgW","VKCurW",
|
speedLV=T(20),
|
||||||
"noScore","highScore",
|
line=T(25),atk=T(20),eff=T(20),
|
||||||
}
|
rpm=T(35),tsd=T(35),
|
||||||
drawableText={
|
grade=T(25),techrash=T(25),
|
||||||
question=T(100,"?"),
|
wave=T(30),nextWave=T(30),
|
||||||
small=T(30,"<"),large=T(30,">"),
|
combo=T(20),maxcmb=T(20),
|
||||||
bpm=T(15,"BPM"),kpm=T(15,"KPM"),
|
pc=T(20),ko=T(25),
|
||||||
|
|
||||||
speedLV=T(20),
|
modeName=T(30),levelName=T(30),
|
||||||
line=T(25),atk=T(20),eff=T(20),
|
|
||||||
rpm=T(35),tsd=T(35),
|
|
||||||
grade=T(25),techrash=T(25),
|
|
||||||
wave=T(30),nextWave=T(30),
|
|
||||||
combo=T(20),maxcmb=T(20),
|
|
||||||
pc=T(20),ko=T(25),
|
|
||||||
|
|
||||||
|
anykey=T(40),
|
||||||
|
replaying=T(20),
|
||||||
|
next=T(40),hold=T(40),
|
||||||
|
win=T(120),finish=T(120),
|
||||||
|
gameover=T(100),pause=T(120),
|
||||||
|
|
||||||
modeName=T(30),levelName=T(30),
|
VKTchW=T(30),VKOrgW=T(30),VKCurW=T(30),
|
||||||
|
noScore=T(45),highScore=T(30),
|
||||||
|
}
|
||||||
anykey=T(40),
|
end
|
||||||
replaying=T(20),
|
|
||||||
next=T(40),hold=T(40),
|
|
||||||
win=T(120),finish=T(120),
|
|
||||||
gameover=T(100),pause=T(120),
|
|
||||||
|
|
||||||
VKTchW=T(30),VKOrgW=T(30),VKCurW=T(30),
|
|
||||||
noScore=T(45),highScore=T(30),
|
|
||||||
}
|
|
||||||
|
|
||||||
do--spinCenters
|
do--spinCenters
|
||||||
local N1,N2,N3,N4={0,1},{1,0},{1,1},{.5,.5}
|
local N1,N2,N3,N4={0,1},{1,0},{1,1},{.5,.5}
|
||||||
@@ -270,4 +264,13 @@ do--spinCenters
|
|||||||
{[0]=I3,I4,I3,I4},--H
|
{[0]=I3,I4,I3,I4},--H
|
||||||
{[0]=L1,L2,L1,L2},--I
|
{[0]=L1,L2,L1,L2},--I
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
rankColor={
|
||||||
|
COLOR.dRed, --D
|
||||||
|
COLOR.dOrange, --C
|
||||||
|
COLOR.lYellow, --B
|
||||||
|
COLOR.lBlue, --A
|
||||||
|
COLOR.lCyan, --S
|
||||||
|
COLOR.lGreen, --Special
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user