render a finish line

pull/80/head
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
1 changed files with 4 additions and 0 deletions

View File

@ -106,6 +106,10 @@ function Race40Game:drawGrid(ruleset)
if self.piece ~= nil then
self:drawGhostPiece(ruleset)
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
function Race40Game:getHighscoreData()