+ end flares to track end

This commit is contained in:
FajsiEx 2021-11-17 20:05:18 +01:00
parent 4629ff6bbe
commit cf5a6ad632
1 changed files with 52 additions and 22 deletions

View File

@ -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 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 outroTransitionScale = 0;
local outroTransitionGlobalAlpha = 0; local outroTransitionGlobalAlpha = 0;
@ -35,6 +38,9 @@ local outroTransitionTextCutX = 0;
local outroTransitionTextAlpha = 1; local outroTransitionTextAlpha = 1;
local outroTransitionTextBlurAlpha = 0; local outroTransitionTextBlurAlpha = 0;
local particlesStartTime = 0.25;
local particlesDuration = 0.2;
local particles = { local particles = {
green_dot_one = { green_dot_one = {
texture = particleGreenDot1Image, texture = particleGreenDot1Image,
@ -45,8 +51,8 @@ local particles = {
yPos = 660, yPos = 660,
width = 235*0.5, width = 235*0.5,
height = 235*0.5, height = 235*0.5,
startTime = 0.25, startTime = particlesStartTime,
duration = 0.6 duration = particlesDuration
}, },
green_dot_two = { green_dot_two = {
texture = particleGreenDot2Image, texture = particleGreenDot2Image,
@ -57,8 +63,8 @@ local particles = {
yPos = 610, yPos = 610,
width = 128*0.5, width = 128*0.5,
height = 128*0.5, height = 128*0.5,
startTime = 0.25, startTime = particlesStartTime,
duration = 0.6 duration = particlesDuration
}, },
blue_ring = { blue_ring = {
texture = particleBlueRingImage, texture = particleBlueRingImage,
@ -69,10 +75,10 @@ local particles = {
yPos = 620, yPos = 620,
width = 229*0.5, width = 229*0.5,
height = 229*0.5, height = 229*0.5,
startTime = 0.25, startTime = particlesStartTime,
duration = 0.6 duration = particlesDuration
}, },
large_rainbow_ring = { -- needs opacity and scale transitions large_rainbow_ring = { -- TODO: scale transitions
texture = particleLargeRainbowRingImage, texture = particleLargeRainbowRingImage,
opacity = 0, opacity = 0,
startOpacity = 0, startOpacity = 0,
@ -83,10 +89,10 @@ local particles = {
yPos = (680-(2273*0.675)/2) + 100, yPos = (680-(2273*0.675)/2) + 100,
width = 2160*0.675, width = 2160*0.675,
height = 2273*0.675, height = 2273*0.675,
startTime = 0.25, startTime = particlesStartTime,
duration = 0.6, duration = particlesDuration
}, },
red_ball = { -- needs opacity transition red_ball = {
texture = particleRedBallImage, texture = particleRedBallImage,
startOpacity = 0, startOpacity = 0,
finishOpacity = 1, finishOpacity = 1,
@ -95,8 +101,8 @@ local particles = {
yPos = 500, yPos = 500,
width = 787*0.5, width = 787*0.5,
height = 818*0.5, height = 818*0.5,
startTime = 0.25, startTime = particlesStartTime,
duration = 0.6 duration = particlesDuration
}, },
red_ring = { red_ring = {
texture = particleRedRingImage, texture = particleRedRingImage,
@ -107,8 +113,8 @@ local particles = {
yPos = 460, yPos = 460,
width = 1051*0.5, width = 1051*0.5,
height = 1081*0.5, height = 1081*0.5,
startTime = 0.25, startTime = particlesStartTime,
duration = 0.6 duration = particlesDuration
}, },
small_yellow_ring_1 = { small_yellow_ring_1 = {
texture = particleSmallYellowRing1Image, texture = particleSmallYellowRing1Image,
@ -119,8 +125,8 @@ local particles = {
yPos = 620, yPos = 620,
width = 579*0.5, width = 579*0.5,
height = 557*0.5, height = 557*0.5,
startTime = 0.25, startTime = particlesStartTime,
duration = 0.6 duration = particlesDuration
}, },
small_yellow_ring_2 = { small_yellow_ring_2 = {
texture = particleSmallYellowRing2Image, texture = particleSmallYellowRing2Image,
@ -131,8 +137,8 @@ local particles = {
yPos = 590, yPos = 590,
width = 436*0.5, width = 436*0.5,
height = 392*0.5, height = 392*0.5,
startTime = 0.25, startTime = particlesStartTime,
duration = 0.6 duration = particlesDuration
}, },
small_rainbow_ring = { small_rainbow_ring = {
texture = particleSmallRainbowRingImage, texture = particleSmallRainbowRingImage,
@ -143,8 +149,8 @@ local particles = {
yPos = 450, yPos = 450,
width = 1117*0.5, width = 1117*0.5,
height = 1117*0.5, height = 1117*0.5,
startTime = 0.25, startTime = particlesStartTime,
duration = 0.6 duration = particlesDuration
}, },
yellow_ring = { yellow_ring = {
texture = particleYellowRingImage, texture = particleYellowRingImage,
@ -155,8 +161,32 @@ local particles = {
yPos = 370, yPos = 370,
width = 1401*0.5, width = 1401*0.5,
height = 1398*0.5, height = 1398*0.5,
startTime = 0.25, startTime = particlesStartTime,
duration = 0.6 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
}, },
} }