render a finish line

This commit is contained in:
Kirby703 2023-09-18 18:51:13 -04:00 committed by GitHub
parent 7c3cf0b1bd
commit ba0aeec98d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,6 +106,10 @@ function Race40Game:drawGrid(ruleset)
if self.piece ~= nil then if self.piece ~= nil then
self:drawGhostPiece(ruleset) self:drawGhostPiece(ruleset)
end end
if self.lines >= self.line_goal - 20 and self.lines < self.line_goal then
local line_height = (self.lines - self.line_goal + 20) * 16 + 80
love.graphics.setColor(1, 0, 0, 1)
love.graphics.line(64, line_height, 224, line_height)
end end
function Race40Game:getHighscoreData() function Race40Game:getHighscoreData()