score frame in lua
This commit is contained in:
@@ -10,4 +10,19 @@ local children = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if GAMESTATE:IsExtraStage() then
|
||||||
|
children[#children+1] = LoadActor("_extra score frame") .. {
|
||||||
|
InitCommand=cmd(x,SCREEN_CENTER_X+0;y,SCREEN_CENTER_Y-208);
|
||||||
|
OnCommand=cmd(addy,-100;sleep,0.5;linear,1;addy,100);
|
||||||
|
OffCommand=cmd(linear,1;addy,-100);
|
||||||
|
};
|
||||||
|
else
|
||||||
|
local sFile = GAMESTATE:GetPlayMode() == "PlayMode_Oni" and "_oni score frame" or "_score frame";
|
||||||
|
children[#children+1] = LoadActor(sFile) .. {
|
||||||
|
InitCommand=cmd(x,SCREEN_CENTER_X+0;y,SCREEN_CENTER_Y+208);
|
||||||
|
OnCommand=cmd(addy,100;linear,0.5;addy,-100);
|
||||||
|
OffCommand=cmd(linear,0.5;addy,100);
|
||||||
|
};
|
||||||
|
end
|
||||||
|
|
||||||
return Def.ActorFrame { children = children };
|
return Def.ActorFrame { children = children };
|
||||||
|
|||||||
Reference in New Issue
Block a user