整理背景代码,部分背景初相不再为0
This commit is contained in:
@@ -20,7 +20,7 @@ back.grey={
|
|||||||
}
|
}
|
||||||
back.glow={
|
back.glow={
|
||||||
init=function()
|
init=function()
|
||||||
t=0
|
t=rnd()*2600
|
||||||
end,
|
end,
|
||||||
update=function(dt)
|
update=function(dt)
|
||||||
t=t+dt
|
t=t+dt
|
||||||
@@ -32,7 +32,7 @@ back.glow={
|
|||||||
}--Light-dark
|
}--Light-dark
|
||||||
back.rgb={
|
back.rgb={
|
||||||
init=function()
|
init=function()
|
||||||
t=0
|
t=rnd()*2600
|
||||||
end,
|
end,
|
||||||
update=function(dt)
|
update=function(dt)
|
||||||
t=t+dt
|
t=t+dt
|
||||||
@@ -47,7 +47,7 @@ back.rgb={
|
|||||||
}--Changing pure color
|
}--Changing pure color
|
||||||
back.flink={
|
back.flink={
|
||||||
init=function()
|
init=function()
|
||||||
t=0
|
t=rnd()*2600
|
||||||
end,
|
end,
|
||||||
update=function(dt)
|
update=function(dt)
|
||||||
t=t+dt
|
t=t+dt
|
||||||
@@ -74,16 +74,16 @@ back.wing={
|
|||||||
init=function()
|
init=function()
|
||||||
gc.setDefaultFilter("linear","linear")
|
gc.setDefaultFilter("linear","linear")
|
||||||
bar=gc.newCanvas(41,1)
|
bar=gc.newCanvas(41,1)
|
||||||
|
gc.setCanvas(bar)
|
||||||
gc.push("transform")
|
gc.push("transform")
|
||||||
gc.origin()
|
gc.origin()
|
||||||
gc.setCanvas(bar)
|
for x=0,20 do
|
||||||
for x=0,20 do
|
gc.setColor(1,1,1,x/11)
|
||||||
gc.setColor(1,1,1,x/11)
|
gc.rectangle("fill",x,0,1,1)
|
||||||
gc.rectangle("fill",x,0,1,1)
|
gc.rectangle("fill",41-x,0,1,1)
|
||||||
gc.rectangle("fill",41-x,0,1,1)
|
end
|
||||||
end
|
|
||||||
gc.setCanvas()
|
|
||||||
gc.pop()
|
gc.pop()
|
||||||
|
gc.setCanvas()
|
||||||
BG.resize()
|
BG.resize()
|
||||||
end,
|
end,
|
||||||
resize=function()
|
resize=function()
|
||||||
@@ -133,7 +133,7 @@ back.wing={
|
|||||||
back.fan={
|
back.fan={
|
||||||
init=function()
|
init=function()
|
||||||
fan=_G.title_fan
|
fan=_G.title_fan
|
||||||
t=0
|
t=rnd(2600)
|
||||||
petal={}
|
petal={}
|
||||||
BG.resize()
|
BG.resize()
|
||||||
end,
|
end,
|
||||||
@@ -205,7 +205,7 @@ back.fan={
|
|||||||
|
|
||||||
back.aura={
|
back.aura={
|
||||||
init=function()
|
init=function()
|
||||||
t=rnd()*3600
|
t=rnd()*2600
|
||||||
BG.resize(SCR.w,SCR.h)
|
BG.resize(SCR.w,SCR.h)
|
||||||
end,
|
end,
|
||||||
resize=function(_,h)
|
resize=function(_,h)
|
||||||
@@ -224,7 +224,7 @@ back.aura={
|
|||||||
}--Cool liquid background
|
}--Cool liquid background
|
||||||
back.bg1={
|
back.bg1={
|
||||||
init=function()
|
init=function()
|
||||||
t=0
|
t=rnd()*2600
|
||||||
BG.resize()
|
BG.resize()
|
||||||
end,
|
end,
|
||||||
resize=function()
|
resize=function()
|
||||||
@@ -242,7 +242,7 @@ back.bg1={
|
|||||||
}--Horizonal red-blue gradient
|
}--Horizonal red-blue gradient
|
||||||
back.bg2={
|
back.bg2={
|
||||||
init=function()
|
init=function()
|
||||||
t=0
|
t=rnd()*2600
|
||||||
BG.resize(nil,SCR.h)
|
BG.resize(nil,SCR.h)
|
||||||
end,
|
end,
|
||||||
resize=function(_,h)
|
resize=function(_,h)
|
||||||
@@ -260,7 +260,7 @@ back.bg2={
|
|||||||
}--Vertical red-green gradient
|
}--Vertical red-green gradient
|
||||||
back.rainbow={
|
back.rainbow={
|
||||||
init=function()
|
init=function()
|
||||||
t=0
|
t=rnd()*2600
|
||||||
BG.resize(SCR.w,SCR.h)
|
BG.resize(SCR.w,SCR.h)
|
||||||
end,
|
end,
|
||||||
resize=function(_,h)
|
resize=function(_,h)
|
||||||
@@ -279,7 +279,7 @@ back.rainbow={
|
|||||||
}--Colorful RGB
|
}--Colorful RGB
|
||||||
back.rainbow2={
|
back.rainbow2={
|
||||||
init=function()
|
init=function()
|
||||||
t=0
|
t=rnd()*2600
|
||||||
BG.resize(SCR.w,SCR.h)
|
BG.resize(SCR.w,SCR.h)
|
||||||
end,
|
end,
|
||||||
resize=function(_,h)
|
resize=function(_,h)
|
||||||
@@ -298,7 +298,7 @@ back.rainbow2={
|
|||||||
}--Blue RGB
|
}--Blue RGB
|
||||||
back.lightning={
|
back.lightning={
|
||||||
init=function()
|
init=function()
|
||||||
t=0
|
t=rnd()*2600
|
||||||
end,
|
end,
|
||||||
update=function(dt)
|
update=function(dt)
|
||||||
t=t+dt
|
t=t+dt
|
||||||
@@ -315,7 +315,7 @@ local blocks=require("parts/mino")
|
|||||||
local scs={.5,1.5,.5,1.5,.5,1.5,.5,1.5,.5,1.5,1,1,0,2}
|
local scs={.5,1.5,.5,1.5,.5,1.5,.5,1.5,.5,1.5,1,1,0,2}
|
||||||
back.lightning2={
|
back.lightning2={
|
||||||
init=function()
|
init=function()
|
||||||
t=0
|
t=rnd()*2600
|
||||||
colorLib=_G.SKIN.libColor
|
colorLib=_G.SKIN.libColor
|
||||||
colorSet=_G.SETTING.skin
|
colorSet=_G.SETTING.skin
|
||||||
blockImg=_G.TEXTURE.miniBlock
|
blockImg=_G.TEXTURE.miniBlock
|
||||||
@@ -338,7 +338,7 @@ back.lightning2={
|
|||||||
local matrixT={}for i=1,50 do matrixT[i]={}for j=1,50 do matrixT[i][j]=love.math.noise(i,j)+2 end end
|
local matrixT={}for i=1,50 do matrixT[i]={}for j=1,50 do matrixT[i][j]=love.math.noise(i,j)+2 end end
|
||||||
back.matrix={
|
back.matrix={
|
||||||
init=function()
|
init=function()
|
||||||
t=rnd()*3600
|
t=rnd()*2600
|
||||||
end,
|
end,
|
||||||
update=function(dt)
|
update=function(dt)
|
||||||
t=t+dt
|
t=t+dt
|
||||||
|
|||||||
Reference in New Issue
Block a user