Answers for "how to remove text in pygame"

0

how to remove text in pygame

screen = pygame.display.get_surface()
font = pygame.font.Font(None, 40)

font_surface = font.render("original", True, pygame.Color("white"));
screen.blit(surface, (0, 0))

screen.fill(pygame.Color("black")) # erases the entire screen surface
font_surface = font.render("edited", True, pygame.Color("white"));
screen.blit(surface, (0, 0))
Posted by: Guest on November-09-2020

Python Answers by Framework

Browse Popular Code Answers by Language