+ track comp text
This commit is contained in:
parent
20c4822064
commit
e25b57314d
|
@ -6,13 +6,16 @@ local bgHexBottomImage = gfx.CreateSkinImage("gameplay/track_end/bottom_hex.png"
|
||||||
local enterFlareBlueImage = gfx.CreateSkinImage("gameplay/track_end/flares/blue_transition_flare.png", 0)
|
local enterFlareBlueImage = gfx.CreateSkinImage("gameplay/track_end/flares/blue_transition_flare.png", 0)
|
||||||
local enterFlarePinkImage = gfx.CreateSkinImage("gameplay/track_end/flares/pink_transition_flare.png", 0)
|
local enterFlarePinkImage = gfx.CreateSkinImage("gameplay/track_end/flares/pink_transition_flare.png", 0)
|
||||||
|
|
||||||
|
local trackCompImage = gfx.CreateSkinImage("gameplay/track_end/track_comp.png", 0)
|
||||||
|
|
||||||
local outroTransitionScale = 0;
|
local outroTransitionScale = 0;
|
||||||
local outroTransitionGlobalAlpha = 0;
|
local outroTransitionGlobalAlpha = 0;
|
||||||
local outroTransitionEnterFlareX = -1920;
|
local outroTransitionEnterFlareX = -1920;
|
||||||
|
local outroTransitionTextCutX = 0;
|
||||||
|
|
||||||
local tickTransitions = function (deltaTime)
|
local tickTransitions = function (deltaTime)
|
||||||
if outroTransitionScale < 1 then
|
if outroTransitionScale < 1 then
|
||||||
outroTransitionScale = outroTransitionScale + deltaTime / 3 -- transition should last for that time in seconds
|
outroTransitionScale = outroTransitionScale + deltaTime / 4 -- transition should last for that time in seconds
|
||||||
else
|
else
|
||||||
outroTransitionScale = 1
|
outroTransitionScale = 1
|
||||||
end
|
end
|
||||||
|
@ -23,6 +26,11 @@ local tickTransitions = function (deltaTime)
|
||||||
(outroTransitionScale-0.2)/0.1* -- Last from 0.2 transition scale for 0.1 transition scale, ending at 0.3 TS
|
(outroTransitionScale-0.2)/0.1* -- Last from 0.2 transition scale for 0.1 transition scale, ending at 0.3 TS
|
||||||
(1920*2) -- move this amount during the transition
|
(1920*2) -- move this amount during the transition
|
||||||
)-1920); -- start off-screen
|
)-1920); -- start off-screen
|
||||||
|
|
||||||
|
outroTransitionTextCutX = math.min(1920, (
|
||||||
|
(outroTransitionScale-0.25)/0.2* -- Last from 0.25 transition scale for 0.2 transition scale, ending at 0.45 TS
|
||||||
|
(1920) -- reveal this amount during the transition (the whole width)
|
||||||
|
)-0); -- start from 0
|
||||||
end
|
end
|
||||||
|
|
||||||
local render = function (deltaTime)
|
local render = function (deltaTime)
|
||||||
|
@ -83,6 +91,19 @@ local render = function (deltaTime)
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
||||||
|
gfx.BeginPath();
|
||||||
|
gfx.Scissor(0, 530, outroTransitionTextCutX, 1920)
|
||||||
|
gfx.ImageRect(
|
||||||
|
0,
|
||||||
|
680,
|
||||||
|
2160*0.5,
|
||||||
|
177*0.5,
|
||||||
|
trackCompImage,
|
||||||
|
1,
|
||||||
|
0
|
||||||
|
);
|
||||||
|
gfx.ResetScissor();
|
||||||
|
|
||||||
-- Get the banner downscaled in whatever resolution it is, while maintaining the aspect ratio
|
-- Get the banner downscaled in whatever resolution it is, while maintaining the aspect ratio
|
||||||
-- local tw,th = gfx.ImageSize(bannerBaseImage);
|
-- local tw,th = gfx.ImageSize(bannerBaseImage);
|
||||||
-- BANNER_H = th * (1080/tw);
|
-- BANNER_H = th * (1080/tw);
|
||||||
|
|
Loading…
Reference in New Issue