Clean up Duality A1

pull/9/head
Ishaan Bhardwaj 2021-10-16 20:28:43 -04:00
parent 8127e376c3
commit 6951104c61
1 changed files with 2 additions and 2 deletions

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