整理代码
This commit is contained in:
@@ -13,7 +13,7 @@ function back.init()
|
|||||||
video=love.data.decompress("string","zlib",love.filesystem.read("parts/backgrounds/badapple.dat"))
|
video=love.data.decompress("string","zlib",love.filesystem.read("parts/backgrounds/badapple.dat"))
|
||||||
end
|
end
|
||||||
t=0
|
t=0
|
||||||
BG.resize()
|
back.resize()
|
||||||
end
|
end
|
||||||
function back.resize()
|
function back.resize()
|
||||||
local W,H=SCR.w,SCR.h
|
local W,H=SCR.w,SCR.h
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ local shader=SHADER.grad1
|
|||||||
local t
|
local t
|
||||||
function back.init()
|
function back.init()
|
||||||
t=rnd()*2600
|
t=rnd()*2600
|
||||||
BG.resize()
|
back.resize()
|
||||||
end
|
end
|
||||||
function back.resize()
|
function back.resize()
|
||||||
shader:send("w",SCR.W)
|
shader:send("w",SCR.W)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ function back.init()
|
|||||||
t=rnd(2600)
|
t=rnd(2600)
|
||||||
fan=title_fan
|
fan=title_fan
|
||||||
petal={}
|
petal={}
|
||||||
BG.resize()
|
back.resize()
|
||||||
end
|
end
|
||||||
function back.update()
|
function back.update()
|
||||||
t=t+1
|
t=t+1
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ local firework,particle
|
|||||||
function back.init()
|
function back.init()
|
||||||
t=26
|
t=26
|
||||||
firework,particle={},{}
|
firework,particle={},{}
|
||||||
BG.resize()
|
|
||||||
end
|
end
|
||||||
function back.update(dt)
|
function back.update(dt)
|
||||||
t=t-1
|
t=t-1
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ local snow
|
|||||||
function back.init()
|
function back.init()
|
||||||
t=0
|
t=0
|
||||||
snow={}
|
snow={}
|
||||||
BG.resize()
|
back.resize()
|
||||||
end
|
end
|
||||||
function back.update()
|
function back.update()
|
||||||
t=t+1
|
t=t+1
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ function back.init()
|
|||||||
end
|
end
|
||||||
gc.pop()
|
gc.pop()
|
||||||
gc.setCanvas()
|
gc.setCanvas()
|
||||||
BG.resize()
|
back.resize()
|
||||||
end
|
end
|
||||||
function back.resize()
|
function back.resize()
|
||||||
crystal={}
|
crystal={}
|
||||||
|
|||||||
@@ -6,18 +6,12 @@ local mStr=mStr
|
|||||||
|
|
||||||
local scene={}
|
local scene={}
|
||||||
|
|
||||||
local board
|
local board,cx,cy
|
||||||
local cx,cy
|
local startTime,time
|
||||||
local startTime
|
local move,state
|
||||||
local time
|
|
||||||
local move
|
|
||||||
local state
|
|
||||||
|
|
||||||
local color
|
local color,blind
|
||||||
local blind
|
local slide,pathVis,revKB
|
||||||
local slide
|
|
||||||
local pathVis
|
|
||||||
local revKB
|
|
||||||
|
|
||||||
function scene.sceneInit()
|
function scene.sceneInit()
|
||||||
BG.set("rainbow2")
|
BG.set("rainbow2")
|
||||||
|
|||||||
@@ -25,14 +25,10 @@ local levels={
|
|||||||
|
|
||||||
local scene={}
|
local scene={}
|
||||||
|
|
||||||
local levelName
|
local levelName,targetString
|
||||||
local targetString
|
local startTime,time
|
||||||
local progress
|
local state,progress
|
||||||
local frameKeyCount
|
local frameKeyCount,mistake
|
||||||
local mistake
|
|
||||||
local startTime
|
|
||||||
local time
|
|
||||||
local state
|
|
||||||
|
|
||||||
function scene.sceneInit()
|
function scene.sceneInit()
|
||||||
BG.set("bg2")
|
BG.set("bg2")
|
||||||
|
|||||||
@@ -9,16 +9,11 @@ local mStr=mStr
|
|||||||
|
|
||||||
local scene={}
|
local scene={}
|
||||||
|
|
||||||
local board
|
local board,rank
|
||||||
local rank
|
local blind,disappear
|
||||||
local blind
|
local startTime,time
|
||||||
local disappear
|
local state,progress
|
||||||
local tapFX
|
local tapFX,mistake
|
||||||
local startTime
|
|
||||||
local time
|
|
||||||
local mistake
|
|
||||||
local state
|
|
||||||
local progress
|
|
||||||
function scene.sceneInit()
|
function scene.sceneInit()
|
||||||
BG.set("space")
|
BG.set("space")
|
||||||
BGM.play("way")
|
BGM.play("way")
|
||||||
|
|||||||
Reference in New Issue
Block a user