From e496cf7297744daf0573f44cf17f592c9da3f44e Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 19 Jul 2017 00:47:10 -0400 Subject: [PATCH] comma on death --- main.lua | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/main.lua b/main.lua index 4b045e4..fa5288d 100644 --- a/main.lua +++ b/main.lua @@ -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') @@ -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