mirror of
https://github.com/SashLilac/cambridge-modpack.git
synced 2024-11-25 14:09:02 -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
|
end
|
||||||
|
|
||||||
local function fadeOut(game, block, x, y, age)
|
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
|
return 0.5, 0.5, 0.5, opacity, opacity
|
||||||
end
|
end
|
||||||
|
|
||||||
local function fadeIn(game, block, x, y, age)
|
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
|
return 0.5, 0.5, 0.5, 1 - opacity, 1 - opacity
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user