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