Added the ghost piece to modes that needed them.

This commit is contained in:
Joe Z 2019-05-29 22:10:27 -04:00
parent cebe57dd1e
commit 956e826bb2
3 changed files with 6 additions and 3 deletions

View File

@ -171,6 +171,9 @@ end
function MarathonA1Game:drawGrid() function MarathonA1Game:drawGrid()
self.grid:draw() self.grid:draw()
if self.piece ~= nil and self.level < 100 then
self:drawGhostPiece(ruleset)
end
end end
function MarathonA1Game:drawScoringInfo() function MarathonA1Game:drawScoringInfo()

View File

@ -346,6 +346,9 @@ function MarathonA3Game:drawGrid()
end end
else else
self.grid:draw() self.grid:draw()
if self.piece ~= nil and self.level < 100 then
self:drawGhostPiece(ruleset)
end
end end
end end

View File

@ -141,9 +141,6 @@ end
function SurvivalA1Game:drawGrid() function SurvivalA1Game:drawGrid()
self.grid:draw() self.grid:draw()
if self.piece ~= nil and self.level < 100 then
self:drawGhostPiece(ruleset)
end
end end
function SurvivalA1Game:drawScoringInfo() function SurvivalA1Game:drawScoringInfo()