Clean up Duality A1

This commit is contained in:
Ishaan Bhardwaj 2021-10-16 20:28:43 -04:00
parent 8127e376c3
commit 6951104c61

View File

@ -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