整理代码

This commit is contained in:
MrZ626
2021-01-05 19:45:05 +08:00
parent c0e44b324b
commit cf57caea70
9 changed files with 19 additions and 35 deletions

View File

@@ -13,7 +13,7 @@ function back.init()
video=love.data.decompress("string","zlib",love.filesystem.read("parts/backgrounds/badapple.dat"))
end
t=0
BG.resize()
back.resize()
end
function back.resize()
local W,H=SCR.w,SCR.h

View File

@@ -7,7 +7,7 @@ local shader=SHADER.grad1
local t
function back.init()
t=rnd()*2600
BG.resize()
back.resize()
end
function back.resize()
shader:send("w",SCR.W)

View File

@@ -12,7 +12,7 @@ function back.init()
t=rnd(2600)
fan=title_fan
petal={}
BG.resize()
back.resize()
end
function back.update()
t=t+1

View File

@@ -10,7 +10,6 @@ local firework,particle
function back.init()
t=26
firework,particle={},{}
BG.resize()
end
function back.update(dt)
t=t-1

View File

@@ -11,7 +11,7 @@ local snow
function back.init()
t=0
snow={}
BG.resize()
back.resize()
end
function back.update()
t=t+1

View File

@@ -26,7 +26,7 @@ function back.init()
end
gc.pop()
gc.setCanvas()
BG.resize()
back.resize()
end
function back.resize()
crystal={}