全新神秘加载画面
This commit is contained in:
@@ -85,7 +85,6 @@ local langList={
|
|||||||
"落在最左:","落在最右:","列在最左:","列在最右:",
|
"落在最左:","落在最右:","列在最左:","列在最右:",
|
||||||
},
|
},
|
||||||
|
|
||||||
load={[0]="加载完成","加载语音ing","加载音乐ing","加载音效ing","加载图片ing","加载字体ing","加载模式ing","加载乱七八糟的东西ing"},
|
|
||||||
pauseStat={
|
pauseStat={
|
||||||
"时间:",
|
"时间:",
|
||||||
"按键/旋转/暂存:",
|
"按键/旋转/暂存:",
|
||||||
@@ -648,7 +647,6 @@ local langList={
|
|||||||
"落在最左:","落在最右:","列在最左:","列在最右:",
|
"落在最左:","落在最右:","列在最左:","列在最右:",
|
||||||
},
|
},
|
||||||
|
|
||||||
load={[0]="加载完成","正在加载语音","正在加载音乐","正在加载音效","正在加载图片","正在加载字体","正在加载模式","正在加载乱七八糟的东西"},
|
|
||||||
pauseStat={
|
pauseStat={
|
||||||
"时间:",
|
"时间:",
|
||||||
"按键/旋转/暂存:",
|
"按键/旋转/暂存:",
|
||||||
@@ -1211,7 +1209,6 @@ local langList={
|
|||||||
"Instant Left:","Instant Right:","Sonic Drop:","Down 1:","Down 4:","Down 10:",
|
"Instant Left:","Instant Right:","Sonic Drop:","Down 1:","Down 4:","Down 10:",
|
||||||
"Left Drop:","Right Drop:","Left Zangi:","Right Zangi:",
|
"Left Drop:","Right Drop:","Left Zangi:","Right Zangi:",
|
||||||
},
|
},
|
||||||
load={[0]="Finished","Loading voice","Loading BGM","Loading SFX","Loading images","Loading fonts","Loading modes","Loading other things"},
|
|
||||||
pauseStat={
|
pauseStat={
|
||||||
"Time:",
|
"Time:",
|
||||||
"Key/Rot./Hold:",
|
"Key/Rot./Hold:",
|
||||||
@@ -1773,7 +1770,6 @@ local langList={
|
|||||||
"|←:","→|:","↓_:","↓1:","↓4:","↓10:",
|
"|←:","→|:","↓_:","↓1:","↓4:","↓10:",
|
||||||
"←↓→↓:","→↓↓:","←↓→↓:","→↓←↓:",
|
"←↓→↓:","→↓↓:","←↓→↓:","→↓←↓:",
|
||||||
},
|
},
|
||||||
load={[0]="___","_vocie_","_BGM_","_SFX_","_images_","_fonts_","_modes_","_???_"},
|
|
||||||
pauseStat={
|
pauseStat={
|
||||||
"~:",
|
"~:",
|
||||||
"=/''/[ ]:",
|
"=/''/[ ]:",
|
||||||
@@ -2337,7 +2333,6 @@ local langList={
|
|||||||
"落在最左:","落在最右:","列在最左:","列在最右:",
|
"落在最左:","落在最右:","列在最左:","列在最右:",
|
||||||
},
|
},
|
||||||
|
|
||||||
load={[0]="加载完成","加载语音ing","加载音乐ing","加载音效ing","加载图片ing","加载字体ing","加载模式ing","加载乱七八糟的东西ing"},
|
|
||||||
pauseStat={
|
pauseStat={
|
||||||
"时间:",
|
"时间:",
|
||||||
"按键/旋转/暂存:",
|
"按键/旋转/暂存:",
|
||||||
|
|||||||
@@ -158,6 +158,7 @@ end
|
|||||||
do--load
|
do--load
|
||||||
function sceneInit.load()
|
function sceneInit.load()
|
||||||
sceneTemp={
|
sceneTemp={
|
||||||
|
time=0,--Animation timer
|
||||||
phase=1,--Loading stage
|
phase=1,--Loading stage
|
||||||
cur=1,--Loading timer
|
cur=1,--Loading timer
|
||||||
tar=#VOC.name,--Current Loading bar length
|
tar=#VOC.name,--Current Loading bar length
|
||||||
@@ -183,6 +184,8 @@ do--load
|
|||||||
sceneTemp.skip=true
|
sceneTemp.skip=true
|
||||||
elseif k=="s"then
|
elseif k=="s"then
|
||||||
sceneTemp.skip,MARKING=true
|
sceneTemp.skip,MARKING=true
|
||||||
|
elseif k=="space"then
|
||||||
|
sceneTemp.time=max(sceneTemp.time-5,0)
|
||||||
elseif k=="escape"then
|
elseif k=="escape"then
|
||||||
SCN.back()
|
SCN.back()
|
||||||
end
|
end
|
||||||
@@ -194,8 +197,8 @@ do--load
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Tmr.load()
|
function Tmr.load()
|
||||||
local t=Timer()
|
|
||||||
local S=sceneTemp
|
local S=sceneTemp
|
||||||
|
if S.time==400 then return end
|
||||||
repeat
|
repeat
|
||||||
if S.phase==1 then
|
if S.phase==1 then
|
||||||
VOC.loadOne(S.cur)
|
VOC.loadOne(S.cur)
|
||||||
@@ -233,42 +236,65 @@ do--load
|
|||||||
SFX.play("welcome_sfx")
|
SFX.play("welcome_sfx")
|
||||||
VOC.play("welcome_voc")
|
VOC.play("welcome_voc")
|
||||||
httpRequest(TICK.httpREQ_launch,"api/game")
|
httpRequest(TICK.httpREQ_launch,"api/game")
|
||||||
else
|
end
|
||||||
|
if S.tar then
|
||||||
S.cur=S.cur+1
|
S.cur=S.cur+1
|
||||||
S.tar=S.cur
|
if S.cur>S.tar then
|
||||||
if S.cur>62.6 then
|
S.phase=S.phase+1
|
||||||
SCN.swapTo("intro","none")
|
S.cur=1
|
||||||
|
S.tar=S.list[S.phase]
|
||||||
end
|
end
|
||||||
loadingFinished=true
|
end
|
||||||
|
S.time=S.time+1
|
||||||
|
if S.time==400 then
|
||||||
|
SCN.swapTo("intro")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
S.cur=S.cur+1
|
until not S.skip
|
||||||
if S.cur>S.tar then
|
|
||||||
S.phase=S.phase+1
|
|
||||||
S.cur=1
|
|
||||||
S.tar=S.list[S.phase]
|
|
||||||
if not S.tar then
|
|
||||||
S.phase=0
|
|
||||||
S.tar=1
|
|
||||||
end
|
|
||||||
end
|
|
||||||
until not S.skip and Timer()-t>.01
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function Pnt.load()
|
function Pnt.load()
|
||||||
local S=sceneTemp
|
local S=sceneTemp
|
||||||
gc.setLineWidth(4)
|
|
||||||
gc.setColor(1,1,1,.5)
|
gc.push("transform")
|
||||||
gc.rectangle("fill",300,330,S.cur/S.tar*680,60,5)
|
gc.translate(640,360)
|
||||||
gc.setColor(1,1,1)
|
gc.scale(2)
|
||||||
gc.rectangle("line",300,330,680,60,5)
|
|
||||||
setFont(35)
|
setFont(80)
|
||||||
gc.print(text.load[S.phase],340,335)
|
local Y=3250*(sin(-1.5708+min(S.time,260)/260*3.1416)+1)+200
|
||||||
if S.phase~=0 then
|
|
||||||
gc.printf(S.cur.."/"..S.tar,795,335,150,"right")
|
--Draw 26F Studio logo
|
||||||
|
if S.time>220 then
|
||||||
|
local T=Timer()
|
||||||
|
gc.setColor(color.dCyan)
|
||||||
|
mStr("26F Studio",0,(Y-6700)*1.2-60)
|
||||||
|
mStr("26F Studio",0,(Y-6700)*0.8-60)
|
||||||
|
gc.setColor(color.cyan)
|
||||||
|
mStr("26F Studio",4*sin(T*10),Y-6760+4*sin(T*6))
|
||||||
|
mStr("26F Studio",4*sin(T*12),Y-6760+4*sin(T*8))
|
||||||
|
gc.setColor(color.dCyan)
|
||||||
|
mStr("26F Studio",-1,Y-6759)
|
||||||
|
mStr("26F Studio",-1,Y-6761)
|
||||||
|
mStr("26F Studio",1,Y-6759)
|
||||||
|
mStr("26F Studio",1,Y-6761)
|
||||||
|
gc.setColor(.2,.2,.2)
|
||||||
|
mStr("26F Studio",0,Y-6760)
|
||||||
end
|
end
|
||||||
setFont(25)
|
|
||||||
mStr(S.tip,640,400)
|
--Draw side line
|
||||||
|
gc.setColor(1,1,1)
|
||||||
|
gc.line(-220,Y-80,-220,Y-6840)
|
||||||
|
gc.line(220,Y-80,220,Y-6840)
|
||||||
|
|
||||||
|
--Draw floors
|
||||||
|
for i=1,27 do
|
||||||
|
if i<26 then
|
||||||
|
mStr(i.."F",0,Y-260*i)
|
||||||
|
end
|
||||||
|
gc.line(-220,Y-260*i+180,220,Y-260*i+180)
|
||||||
|
end
|
||||||
|
|
||||||
|
gc.pop()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
do--intro
|
do--intro
|
||||||
|
|||||||
Reference in New Issue
Block a user