Task 6.3: Show the score on the screen
- Render the score on the screen. We can use
font.render()
. 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)
score_render = font.render("Score: " + score, True, colour)