python - Replace Text On Pygame Window -
i making score system on python file. tried using this:
font = pygame.font.sysfont(none, 25) text = font.render('score: '+str(score), true, black) gamedisplay.blit(text, [0,0])
for reason, new score goes on top of old score, , can't read it. makes huge blob of numbers. there way of replacing text?
in game loop, have clear drawn filling screen painting:
gamedisplay.fill(your_color_tuple) # afterwards add drawing code
Comments
Post a Comment