move player using center pygame code example
Example: pygame window at center
import pygame, os
os.environ['SDL_VIDEO_CENTERED'] = '1'
# This has to be done before you initialise pygame with pygame.init()
import pygame, os
os.environ['SDL_VIDEO_CENTERED'] = '1'
# This has to be done before you initialise pygame with pygame.init()