Added the ghost piece to modes that needed them.

pull/1/head
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()
self.grid:draw()
if self.piece ~= nil and self.level < 100 then
self:drawGhostPiece(ruleset)
end
end
function MarathonA1Game:drawScoringInfo()

View File

@ -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

View File

@ -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()