diff --git a/BlankProjectTemplate/src/Gameplay.py b/BlankProjectTemplate/src/Gameplay.py index 11e90d26dc9e3062702921bfd775c096d8046731..04af693d90a8634840a0b0d09c594cd75f229e1b 100644 --- a/BlankProjectTemplate/src/Gameplay.py +++ b/BlankProjectTemplate/src/Gameplay.py @@ -107,11 +107,15 @@ while run: win.fill(white) - + + font = pygame.font.SysFont("times",30) + text = font.render("Score = " + str(score),True,[0,0,0]) + win.blit(text,(0,0)) + #function to print #consumption of food block food.redraw_food(x, y, food_location, screenSize) - if ([x,y] in snake_loc) and snake_length > 1: + if ([x,y] in snake_loc) and snake_length > 1: pygame.time.delay(1000) pygame.quit() #quit for now, but should return to main menu