In Pygame, I'm making a game with highscores. I want to blit a highscore variable onto the screen, called c
but whenever I try to run the program, it freezes and I don't know why. How can I blit the variable c
to the screen without it freezing? Here is the relevant code:
# High score (printed in the corner)
c=0
while c>=0:
c=c+1
highscore=myfont6.render("High score:",True, THECOLORS["purple"])
score=myfont6.render(c, True, THECOLORS["purple"])
screen.blit(highscore, (20,20))
screen.blit(score,(40,20))