Is there a way I can display text on a pygame window using python?
I need to display a bunch of live information that updates and would rather not make an image for
I have some code in my game that displays live score. It is in a function for quick access.
def texts(score): font=pygame.font.Font(None,30) scoretext=font.render("Score:"+str(score), 1,(255,255,255)) screen.blit(scoretext, (500, 457))
and I call it using this in my while loop:
texts(score)