Answers for "how to get the height and width of a screen in pygame"

3

pygame get screen width and height

#pygame
w, h = pygame.display.get_surface().get_size()

#w = width
#h = height
Posted by: Guest on April-30-2021

Code answers related to "how to get the height and width of a screen in pygame"

Python Answers by Framework

Browse Popular Code Answers by Language