Task 6.3: Show the score on the screen

  1. Render the score on the screen. We can use font.render().
  2. blit the text onto the screen. Experiment with where you would put the score!

💡 Hint

  • Setting fonts and colours in pygame:
  • 
    colour = (256, 256, 256) # (R,G,B)
    font = pygame.font.SysFont('Palatino', 50)
        
  • Rendering text. We concatenate "Score: " and the score variable to make it nice!
  • Link to documentation for font.render
  • 
    score_render = font.render("Score: " + score, True, colour)