整理代码
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
local sin,cos=math.sin,math.cos
|
||||
|
||||
title={
|
||||
{
|
||||
53, 60,
|
||||
@@ -150,6 +148,8 @@ title2[5]={
|
||||
}
|
||||
]]
|
||||
|
||||
do--title_fan
|
||||
local sin,cos=math.sin,math.cos
|
||||
title_fan={}
|
||||
for i=1,8 do
|
||||
local L={}
|
||||
@@ -164,7 +164,9 @@ for i=1,8 do
|
||||
L[j],L[j+1]=x,y+300
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
do--missionEnum
|
||||
missionEnum={
|
||||
_1=01,_2=02,_3=03,_4=04,
|
||||
A1=05,A2=06,A3=07,A4=08,
|
||||
@@ -180,16 +182,9 @@ missionEnum={
|
||||
local _={}
|
||||
for k,v in next,missionEnum do _[v]=k end
|
||||
for k,v in next,_ do missionEnum[k]=v end
|
||||
end
|
||||
|
||||
rankColor={
|
||||
COLOR.dRed, --D
|
||||
COLOR.dOrange, --C
|
||||
COLOR.lYellow, --B
|
||||
COLOR.lBlue, --A
|
||||
COLOR.lCyan, --S
|
||||
COLOR.lGreen, --Special
|
||||
}
|
||||
|
||||
do--drawableTextLoad, drawableText
|
||||
local function T(s,t)return love.graphics.newText(getFont(s),t)end
|
||||
drawableTextLoad={
|
||||
"anykey",
|
||||
@@ -221,10 +216,8 @@ drawableText={
|
||||
combo=T(20),maxcmb=T(20),
|
||||
pc=T(20),ko=T(25),
|
||||
|
||||
|
||||
modeName=T(30),levelName=T(30),
|
||||
|
||||
|
||||
anykey=T(40),
|
||||
replaying=T(20),
|
||||
next=T(40),hold=T(40),
|
||||
@@ -234,6 +227,7 @@ drawableText={
|
||||
VKTchW=T(30),VKOrgW=T(30),VKCurW=T(30),
|
||||
noScore=T(45),highScore=T(30),
|
||||
}
|
||||
end
|
||||
|
||||
do--spinCenters
|
||||
local N1,N2,N3,N4={0,1},{1,0},{1,1},{.5,.5}
|
||||
@@ -271,3 +265,12 @@ do--spinCenters
|
||||
{[0]=L1,L2,L1,L2},--I
|
||||
}
|
||||
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