* track end z index fixes

This commit is contained in:
FajsiEx 2021-11-17 21:26:44 +01:00
parent d8b40d1bf9
commit d5f9faabf2
3 changed files with 26 additions and 14 deletions

View File

@ -42,7 +42,8 @@ local particlesStartTime = 0.25;
local particlesDuration = 0.2; local particlesDuration = 0.2;
local particles = { local particles = {
green_dot_one = { {
name = 'green_dot_one',
texture = particleGreenDot1Image, texture = particleGreenDot1Image,
opacity = 1, opacity = 1,
startX = 1280, startX = 1280,
@ -54,7 +55,8 @@ local particles = {
startTime = particlesStartTime, startTime = particlesStartTime,
duration = particlesDuration duration = particlesDuration
}, },
green_dot_two = { {
name = 'green_dot_two',
texture = particleGreenDot2Image, texture = particleGreenDot2Image,
opacity = 1, opacity = 1,
startX = 1280, startX = 1280,
@ -66,7 +68,8 @@ local particles = {
startTime = particlesStartTime, startTime = particlesStartTime,
duration = particlesDuration duration = particlesDuration
}, },
blue_ring = { {
name = 'blue_ring',
texture = particleBlueRingImage, texture = particleBlueRingImage,
opacity = 1, opacity = 1,
startX = 1280, startX = 1280,
@ -78,7 +81,8 @@ local particles = {
startTime = particlesStartTime, startTime = particlesStartTime,
duration = particlesDuration duration = particlesDuration
}, },
large_rainbow_ring = { -- TODO: scale transitions { -- TODO: scale transitions
name = 'large_rainbow_ring',
texture = particleLargeRainbowRingImage, texture = particleLargeRainbowRingImage,
opacity = 0, opacity = 0,
startOpacity = 0, startOpacity = 0,
@ -92,7 +96,8 @@ local particles = {
startTime = particlesStartTime, startTime = particlesStartTime,
duration = particlesDuration duration = particlesDuration
}, },
red_ball = { {
name = 'red_ball',
texture = particleRedBallImage, texture = particleRedBallImage,
startOpacity = 0, startOpacity = 0,
finishOpacity = 1, finishOpacity = 1,
@ -104,7 +109,8 @@ local particles = {
startTime = particlesStartTime, startTime = particlesStartTime,
duration = particlesDuration duration = particlesDuration
}, },
red_ring = { {
name = 'red_ring',
texture = particleRedRingImage, texture = particleRedRingImage,
opacity = 1, opacity = 1,
startX = -600, startX = -600,
@ -116,7 +122,8 @@ local particles = {
startTime = particlesStartTime, startTime = particlesStartTime,
duration = particlesDuration duration = particlesDuration
}, },
small_yellow_ring_1 = { {
name = 'small_yellow_ring_1',
texture = particleSmallYellowRing1Image, texture = particleSmallYellowRing1Image,
opacity = 1, opacity = 1,
startX = 1280, startX = 1280,
@ -128,7 +135,8 @@ local particles = {
startTime = particlesStartTime, startTime = particlesStartTime,
duration = particlesDuration duration = particlesDuration
}, },
small_yellow_ring_2 = { {
name = 'small_yellow_ring_2',
texture = particleSmallYellowRing2Image, texture = particleSmallYellowRing2Image,
opacity = 1, opacity = 1,
startX = 1280, startX = 1280,
@ -140,7 +148,8 @@ local particles = {
startTime = particlesStartTime, startTime = particlesStartTime,
duration = particlesDuration duration = particlesDuration
}, },
small_rainbow_ring = { {
name = 'small_rainbow_ring',
texture = particleSmallRainbowRingImage, texture = particleSmallRainbowRingImage,
opacity = 1, opacity = 1,
startX = 1280, startX = 1280,
@ -152,7 +161,8 @@ local particles = {
startTime = particlesStartTime, startTime = particlesStartTime,
duration = particlesDuration duration = particlesDuration
}, },
yellow_ring = { {
name = 'yellow_ring',
texture = particleYellowRingImage, texture = particleYellowRingImage,
opacity = 1, opacity = 1,
startX = -600, startX = -600,
@ -164,7 +174,8 @@ local particles = {
startTime = particlesStartTime, startTime = particlesStartTime,
duration = particlesDuration duration = particlesDuration
}, },
blue_flare = { {
name = 'blue_flare',
texture = flareEndBlueImage, texture = flareEndBlueImage,
opacity = 1, opacity = 1,
startX = -1500, startX = -1500,
@ -176,7 +187,8 @@ local particles = {
startTime = particlesStartTime, startTime = particlesStartTime,
duration = particlesDuration duration = particlesDuration
}, },
pink_flare = { {
name = 'pink_flare',
texture = flareEndPinkImage, texture = flareEndPinkImage,
opacity = 1, opacity = 1,
startX = 1500, startX = 1500,
@ -262,7 +274,7 @@ local tickTransitions = function (deltaTime)
end end
local drawParticles = function () local drawParticles = function ()
for particleName, particle in pairs(particles) do for index, particle in ipairs(particles) do
gfx.BeginPath(); gfx.BeginPath();
gfx.ImageRect( gfx.ImageRect(
particle.xPos, particle.xPos,
@ -273,7 +285,7 @@ local drawParticles = function ()
particle.opacity, particle.opacity,
0 0
); );
-- game.Log(particle.currentX, game.LOGGER_ERROR) -- game.Log(particle.name, game.LOGGER_ERROR)
end end
gfx.BeginPath(); gfx.BeginPath();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB