Skip to content
Snippets Groups Projects
Commit 370ee91b authored by Hameed Andy's avatar Hameed Andy
Browse files

play again bug fixed

parent 04bd968a
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ from Food import *
import ScoreDisplay
def game(speed, colour,food_colour, backgroundColour):
pygame.event.clear()
x = randint(0, grid_length) * size
y = randint(0, grid_length) * size
#defining a list to update snanke's length
......@@ -97,8 +98,9 @@ def game(speed, colour,food_colour, backgroundColour):
y > screenSize - size or
x > screenSize - size):
run = False
ScoreDisplay.display(score,speed, colour,food_colour, backgroundColour)
#-------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment