I have my score in a while loop in pygame, so it looks something like this.
score = 0
while True:
score += 0.1
text = font.render("Score: "+str(int(score)), True, (255, 255, 255))
display.blit(text, (0,0))
How would I get my program to store a new high score every time the player beats his old high score. And how do you even store a score? I want the score to be the same if the user closes the program and opens it later. If this is possible can someone explain it.