From cf5a6ad63253a8f25e45bc24ffb24e8d04552dca Mon Sep 17 00:00:00 2001 From: FajsiEx Date: Wed, 17 Nov 2021 20:05:18 +0100 Subject: [PATCH] + end flares to track end --- scripts/gameplay/track_end.lua | 74 ++++++++++++++++++++++++---------- 1 file changed, 52 insertions(+), 22 deletions(-) diff --git a/scripts/gameplay/track_end.lua b/scripts/gameplay/track_end.lua index 62f916e..187dda4 100644 --- a/scripts/gameplay/track_end.lua +++ b/scripts/gameplay/track_end.lua @@ -26,6 +26,9 @@ local particleSmallRainbowRingImage = gfx.CreateSkinImage("gameplay/track_end/pa local particleYellowRingImage = gfx.CreateSkinImage("gameplay/track_end/particles/yellow_ring.png", 0) +local flareEndBlueImage = gfx.CreateSkinImage("gameplay/track_end/flares/blue_end_flare.png", 0) +local flareEndPinkImage = gfx.CreateSkinImage("gameplay/track_end/flares/pink_end_flare.png", 0) + local outroTransitionScale = 0; local outroTransitionGlobalAlpha = 0; @@ -35,6 +38,9 @@ local outroTransitionTextCutX = 0; local outroTransitionTextAlpha = 1; local outroTransitionTextBlurAlpha = 0; +local particlesStartTime = 0.25; +local particlesDuration = 0.2; + local particles = { green_dot_one = { texture = particleGreenDot1Image, @@ -45,8 +51,8 @@ local particles = { yPos = 660, width = 235*0.5, height = 235*0.5, - startTime = 0.25, - duration = 0.6 + startTime = particlesStartTime, + duration = particlesDuration }, green_dot_two = { texture = particleGreenDot2Image, @@ -57,8 +63,8 @@ local particles = { yPos = 610, width = 128*0.5, height = 128*0.5, - startTime = 0.25, - duration = 0.6 + startTime = particlesStartTime, + duration = particlesDuration }, blue_ring = { texture = particleBlueRingImage, @@ -69,10 +75,10 @@ local particles = { yPos = 620, width = 229*0.5, height = 229*0.5, - startTime = 0.25, - duration = 0.6 + startTime = particlesStartTime, + duration = particlesDuration }, - large_rainbow_ring = { -- needs opacity and scale transitions + large_rainbow_ring = { -- TODO: scale transitions texture = particleLargeRainbowRingImage, opacity = 0, startOpacity = 0, @@ -83,10 +89,10 @@ local particles = { yPos = (680-(2273*0.675)/2) + 100, width = 2160*0.675, height = 2273*0.675, - startTime = 0.25, - duration = 0.6, + startTime = particlesStartTime, + duration = particlesDuration }, - red_ball = { -- needs opacity transition + red_ball = { texture = particleRedBallImage, startOpacity = 0, finishOpacity = 1, @@ -95,8 +101,8 @@ local particles = { yPos = 500, width = 787*0.5, height = 818*0.5, - startTime = 0.25, - duration = 0.6 + startTime = particlesStartTime, + duration = particlesDuration }, red_ring = { texture = particleRedRingImage, @@ -107,8 +113,8 @@ local particles = { yPos = 460, width = 1051*0.5, height = 1081*0.5, - startTime = 0.25, - duration = 0.6 + startTime = particlesStartTime, + duration = particlesDuration }, small_yellow_ring_1 = { texture = particleSmallYellowRing1Image, @@ -119,8 +125,8 @@ local particles = { yPos = 620, width = 579*0.5, height = 557*0.5, - startTime = 0.25, - duration = 0.6 + startTime = particlesStartTime, + duration = particlesDuration }, small_yellow_ring_2 = { texture = particleSmallYellowRing2Image, @@ -131,8 +137,8 @@ local particles = { yPos = 590, width = 436*0.5, height = 392*0.5, - startTime = 0.25, - duration = 0.6 + startTime = particlesStartTime, + duration = particlesDuration }, small_rainbow_ring = { texture = particleSmallRainbowRingImage, @@ -143,8 +149,8 @@ local particles = { yPos = 450, width = 1117*0.5, height = 1117*0.5, - startTime = 0.25, - duration = 0.6 + startTime = particlesStartTime, + duration = particlesDuration }, yellow_ring = { texture = particleYellowRingImage, @@ -155,8 +161,32 @@ local particles = { yPos = 370, width = 1401*0.5, height = 1398*0.5, - startTime = 0.25, - duration = 0.6 + startTime = particlesStartTime, + duration = particlesDuration + }, + blue_flare = { + texture = flareEndBlueImage, + opacity = 1, + startX = -1500, + finishX = 0, + xPos = -1500, + yPos = 480, + width = 2160*0.5, + height = 1100*0.5, + startTime = particlesStartTime, + duration = particlesDuration + }, + pink_flare = { + texture = flareEndPinkImage, + opacity = 1, + startX = 1500, + finishX = 0, + xPos = 1080+1500, + yPos = 480, + width = 2160*0.5, + height = 1100*0.5, + startTime = particlesStartTime, + duration = particlesDuration }, }