Skip to content
This repository has been archived by the owner on Apr 24, 2018. It is now read-only.

Commit

Permalink
comma on death
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethreitz committed Jul 19, 2017
1 parent 56c9c7b commit e496cf7
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,6 @@ function draw_attractor()
-- love.graphics.circle("fill", 400, 300, random_max - 15)
end

function draw_field()
for i=1,1000 do
love.graphics.setColor(math.random(1, 255), math.random(1, 255), math.random(1, 255))
love.graphics.points(math.random(1, 800), math.random(1, 600))
-- stars_printed = 1
end
end

function draw_distance()
love.graphics.setColor(255, 255, 255)
love.graphics.printf(comma_value(math.floor(game:score())), 30, 30, 400, 'left')
Expand Down Expand Up @@ -221,7 +213,7 @@ function draw_death()
love.graphics.printf('GAME OVER', 0, height/2, width, 'center')

love.graphics.setColor(255, 255, 255)
love.graphics.printf('Score: '..math.floor(game:score()), 0, (height/3)*2, width, 'center')
love.graphics.printf('Score: '..comma_value(math.floor(game:score())), 0, (height/3)*2, width, 'center')

over_sound:play()
end
Expand Down

0 comments on commit e496cf7

Please sign in to comment.