I am trying to put text in the center of the screen, but also on top to label the text in the center. In order to center the text currently, I am using the code below...
info = pygame.display.Info()
screen = pygame.display.set_mode((info.current_w, info.current_h), pygame.FULLSCREEN)
screen_rect = screen.get_rect()
txt = font.render("some random message", True, color)
screen.blit(txt, txt.get_rect(center=screen_rect.center))
But I cannot find a way to modify the center using get_rect() to edit just the y-axis. I also could not find any more elaboration about the get_rect() function in the documentation.