Tag Archives: pygame

Pygame Center Text

Pygame Center Text. Create a display surface object using display.set_mode () method of pygame. After we have imported our font, we use the render () method on it, and here, we can supply some interesting stuff. python library pygame centering text Stack Overflow from stackoverflow.com Surface = pygame.surface(rect.size) surface.fill(background_color) accumulated_height = 0 for line in. Gobox = game_over.get_rect(center… Read More »