加入扇子背景

This commit is contained in:
MrZ_26
2020-08-18 00:38:28 +08:00
parent 37d0a106a9
commit a7112094f6
3 changed files with 62 additions and 8 deletions

View File

@@ -71,8 +71,6 @@ local wingColor={
} }
back.wing={ back.wing={
init=function() init=function()
t=rnd(02200,19600)
gc.setDefaultFilter("linear","linear") gc.setDefaultFilter("linear","linear")
bar=gc.newCanvas(41,1) bar=gc.newCanvas(41,1)
gc.push("transform") gc.push("transform")
@@ -101,7 +99,6 @@ back.wing={
end end
end, end,
update=function() update=function()
t=t+1
for i=1,16 do for i=1,16 do
local B=crystal[i] local B=crystal[i]
B.a=B.a+B.va B.a=B.a+B.va
@@ -129,6 +126,46 @@ back.wing={
end, end,
}--Flandre's wing }--Flandre's wing
local _
back.fan={
init=function()
L=_G.title_fan
t=0
BG.resize()
end,
resize=function()
CX,CY=scr.w/2,scr.h/2
end,
update=function()
t=t+1
end,
draw=function()
gc.push("transform")
gc.translate(CX,CY+20*sin(t*.02))
gc.scale(scr.k)
gc.clear(.1,.1,.1)
gc.setLineWidth(320)
gc.setColor(.3,.2,.3)
gc.arc("line","open",0,420,500,-.8*3.1416,-.2*3.1416)
gc.setLineWidth(4)
gc.setColor(.7,.5,.65)
gc.arc("line","open",0,420,660,-.799*3.1416,-.201*3.1416)
gc.arc("line","open",0,420,340,-.808*3.1416,-.192*3.1416)
gc.line(-281,224,-530,30.5)
gc.line(281,224,530,30.5)
gc.setLineWidth(6)
gc.setColor(.55,.5,.6)
local L=L
for i=1,8 do
gc.polygon("line",L[i])
end
gc.pop()
end,
}
back.aura={ back.aura={
init=function() init=function()
t=rnd()*3600 t=rnd()*3600

View File

@@ -20,7 +20,7 @@ return{
end end
end end
end, end,
bg="matrix",bgm="infinite", bg="fan",bgm="infinite",
}, },
slowMark=true, slowMark=true,
pauseLimit=true, pauseLimit=true,

View File

@@ -1,3 +1,4 @@
local sin,cos=math.sin,math.cos
snapLevelValue={1,10,20,40,60,80} snapLevelValue={1,10,20,40,60,80}
title={ title={
{ {
@@ -114,6 +115,12 @@ title={
5878, 463, 5878, 463,
}, },
} }
for _,C in next,title do
for i=1,#C do
C[i]=C[i]*.1626
end
end
--[[
title2={} title2={}
for i=1,#title do title2[i]=title[i]end for i=1,#title do title2[i]=title[i]end
title2[5]={ title2[5]={
@@ -140,12 +147,22 @@ title2[5]={
3001, 1280, 3001, 1280,
2779, 1280, 2779, 1280,
} }
]]
for _,C in next,title do title_fan={}
for i=1,#C do for i=1,8 do
C[i]=C[i]*.1626 local L={}
title_fan[i]=L
for j=1,#title[i]do
L[j]=title[i][j]
end
for j=1,#L,2 do
local x,y=L[j],L[j+1]--0<x<3041, 290<y<1280
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
customID={ customID={
"drop","lock", "drop","lock",
"wait","fall", "wait","fall",