Getting the center of surfaces in pygame with python 3.4
问题 I'm having troubles getting the center of surfaces with pygame. It defaults to the upper left corner of surfaces when trying to place them on other surfaces. To demonstrate what I mean I wrote a short program. import pygame WHITE = (255, 255, 255) pygame.init() #creating a test screen screen = pygame.display.set_mode((500, 500), pygame.RESIZABLE) #creating the canvas game_canvas = screen.copy() game_canvas.fill(WHITE) #drawing the canvas onto screen with coords 50, 50 (tho its using the upper