所有场景文件独立

This commit is contained in:
MrZ626
2020-11-01 14:26:52 +08:00
parent f331ddc04d
commit c9fd340646
38 changed files with 3798 additions and 3657 deletions

38
parts/scenes/staff.lua Normal file
View File

@@ -0,0 +1,38 @@
local gc=love.graphics
local kb,tc=love.keyboard,love.touch
local setFont=setFont
local mStr=mStr
function sceneInit.staff()
sceneTemp={
time=0,
v=1,
}
BG.set("space")
end
function Tmr.staff(dt)
local S=sceneTemp
if(kb.isDown("space","return")or tc.getTouches()[1])and S.v<6.26 then
S.v=S.v+.26
elseif S.v>1 then
S.v=S.v-.26
end
S.time=S.time+S.v*dt
if S.time>45 then
S.time=45
end
end
function Pnt.staff()
local L=text.staff
local t=sceneTemp.time
setFont(40)
gc.setColor(1,1,1)
for i=1,#L do
mStr(L[i],640,800+80*i-t*40)
end
mDraw(IMG.title_color,640,800-t*40,nil,2)
mDraw(IMG.title_color,640,2160-t*40,nil,2)
end