From 956e826bb2ad7b0b0b6ec1556b35315638d728cd Mon Sep 17 00:00:00 2001 From: Joe Z Date: Wed, 29 May 2019 22:10:27 -0400 Subject: [PATCH] Added the ghost piece to modes that needed them. --- tetris/modes/marathon_a1.lua | 3 +++ tetris/modes/marathon_a3.lua | 3 +++ tetris/modes/survival_a1.lua | 3 --- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tetris/modes/marathon_a1.lua b/tetris/modes/marathon_a1.lua index 146d189..dd802d2 100644 --- a/tetris/modes/marathon_a1.lua +++ b/tetris/modes/marathon_a1.lua @@ -171,6 +171,9 @@ end function MarathonA1Game:drawGrid() self.grid:draw() + if self.piece ~= nil and self.level < 100 then + self:drawGhostPiece(ruleset) + end end function MarathonA1Game:drawScoringInfo() diff --git a/tetris/modes/marathon_a3.lua b/tetris/modes/marathon_a3.lua index 8a53371..a42a373 100644 --- a/tetris/modes/marathon_a3.lua +++ b/tetris/modes/marathon_a3.lua @@ -346,6 +346,9 @@ function MarathonA3Game:drawGrid() end else self.grid:draw() + if self.piece ~= nil and self.level < 100 then + self:drawGhostPiece(ruleset) + end end end diff --git a/tetris/modes/survival_a1.lua b/tetris/modes/survival_a1.lua index 5422f23..91902ec 100644 --- a/tetris/modes/survival_a1.lua +++ b/tetris/modes/survival_a1.lua @@ -141,9 +141,6 @@ end function SurvivalA1Game:drawGrid() self.grid:draw() - if self.piece ~= nil and self.level < 100 then - self:drawGhostPiece(ruleset) - end end function SurvivalA1Game:drawScoringInfo()