From 9f61b139fd9f093c8aadad841239dd667ad88bb0 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Thu, 12 Nov 2020 16:52:40 -0500 Subject: [PATCH] TAP M-roll created --- tetris/modes/marathon_a2.lua | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tetris/modes/marathon_a2.lua b/tetris/modes/marathon_a2.lua index 5986584..120ed67 100644 --- a/tetris/modes/marathon_a2.lua +++ b/tetris/modes/marathon_a2.lua @@ -305,16 +305,9 @@ MarathonA2Game.rollOpacityFunction = function(age) else return 1 - (age - 240) / 60 end end -MarathonA2Game.mRollOpacityFunction = function(age) - if age > 4 then return 0 - else return 1 - age / 4 end -end - function MarathonA2Game:drawGrid(ruleset) if self.clear and not (self.completed or self.game_over) then - if self:qualifiesForMRoll() then - self.grid:drawInvisible(self.mRollOpacityFunction) - else + if not self:qualifiesForMRoll() then self.grid:drawInvisible(self.rollOpacityFunction) end else