Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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()
 
PREVIOUS NEXT
Tagged: #pygame #window #center
ADD COMMENT
Topic
Name
3+2 =