8. Racey – Scoring

STEP Eight – A

def things_dodged(count):
    font = pygame.font.SysFont(None, 25)
    text = font.render("Dodged: "+str(count), True, black)
    gameDisplay.blit(text,(0,0))

STEP Eight – B

#scoring
    thingCount = 1
 
    dodged = 0

STEP Eight – C

#call things_dodged        
        things_dodged(dodged)

STEP Eight – D

#scoring
            dodged += 1
            thing_speed += 1
            thing_width += (dodged * 1.2)

Run your code

You have finished the game

Remember to try the Add-Ons