2014-08-30 20:17:15 -07:00
|
|
|
local timer_seconds = THEME:GetMetric(Var "LoadingScreen","TimerSeconds");
|
|
|
|
|
|
2013-07-18 17:43:31 -04:00
|
|
|
return Def.ActorFrame {
|
2014-07-26 15:48:36 -05:00
|
|
|
InitCommand=cmd(Center),
|
2014-08-30 20:17:15 -07:00
|
|
|
-- Fade
|
|
|
|
|
Def.ActorFrame {
|
|
|
|
|
InitCommand=cmd();
|
|
|
|
|
Def.Quad {
|
|
|
|
|
InitCommand=cmd(scaletoclipped,SCREEN_WIDTH,SCREEN_HEIGHT),
|
|
|
|
|
OnCommand=cmd(diffuse,Color.Black;diffusealpha,0;linear,0.5;diffusealpha,0.25;
|
|
|
|
|
sleep,timer_seconds/2;
|
|
|
|
|
linear,timer_seconds/2-0.5;diffusealpha,0.8),
|
|
|
|
|
},
|
|
|
|
|
},
|
2018-08-04 19:13:36 -06:00
|
|
|
|
|
|
|
|
Def.Quad {
|
|
|
|
|
InitCommand=cmd(zoomto,SCREEN_WIDTH,SCREEN_HEIGHT),
|
2018-08-14 14:19:02 -06:00
|
|
|
OnCommand=cmd(diffuse,color("#000000")),
|
2018-08-04 19:13:36 -06:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
LoadActor("_diamond") .. {
|
2018-08-14 14:19:02 -06:00
|
|
|
InitCommand=cmd(diffusealpha,0);
|
2018-08-05 10:01:59 -06:00
|
|
|
OnCommand=cmd(rotationz,0;zoom,1;sleep,1;diffusealpha,1;linear,3;zoom,1;diffusealpha,0);
|
2018-08-04 19:13:36 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
LoadActor("_sound") .. {
|
2018-08-14 14:19:02 -06:00
|
|
|
OnCommand=cmd(queuecommand,"Sound");
|
2018-08-04 19:13:36 -06:00
|
|
|
SoundCommand=cmd(play);
|
|
|
|
|
};
|
|
|
|
|
|
2014-07-26 15:48:36 -05:00
|
|
|
LoadActor(THEME:GetPathG("ScreenGameOver","gameover"))..{
|
2018-08-14 14:19:02 -06:00
|
|
|
OnCommand=cmd(zoomx,1.1;diffusealpha,0;sleep,1;decelerate,0.6;diffusealpha,1;zoomx,1);
|
2014-07-26 15:48:36 -05:00
|
|
|
},
|
2018-08-04 19:13:36 -06:00
|
|
|
|
|
|
|
|
LoadFont("Common Condensed")..{
|
|
|
|
|
Text=ScreenString("Play again soon!");
|
|
|
|
|
InitCommand=cmd(y,68;shadowlength,2);
|
2018-08-14 14:19:02 -06:00
|
|
|
OnCommand=cmd(diffusealpha,0;sleep,3;linear,0.3;diffusealpha,1);
|
2018-08-04 19:13:36 -06:00
|
|
|
},
|
2014-07-26 15:48:36 -05:00
|
|
|
}
|