mirror of
https://github.com/SashLilac/cambridge-modpack.git
synced 2024-12-25 12:09:03 -06:00
Clean up Duality A1
This commit is contained in:
parent
8127e376c3
commit
6951104c61
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user