From 6951104c61a5f2b22cb05fda51e40c703710b3e1 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Sat, 16 Oct 2021 20:28:43 -0400 Subject: [PATCH] Clean up Duality A1 --- tetris/modes/duality_a1.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tetris/modes/duality_a1.lua b/tetris/modes/duality_a1.lua index 701afb1..3a84f64 100644 --- a/tetris/modes/duality_a1.lua +++ b/tetris/modes/duality_a1.lua @@ -41,12 +41,12 @@ function DualityA1Game:afterLineClear(cleared_row_count) end local function fadeOut(game, block, x, y, age) - local opacity = (game.are - (game:getARE() / 2)) / (game:getARE() / 2) + local opacity = game.are / (game:getARE() / 2) - 1 return 0.5, 0.5, 0.5, opacity, opacity end local function fadeIn(game, block, x, y, age) - local opacity = (game.are - (game:getARE() / 2)) / (game:getARE() / 2) + local opacity = game.are / (game:getARE() / 2) - 1 return 0.5, 0.5, 0.5, 1 - opacity, 1 - opacity end