📜  pygame 如何获得表面长度 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:02.904000             🧑  作者: Mango

代码示例1
screen = pygame.display.set_mode((700, 500))
#get 2 variables for width and height
x, y = pygame.display.get_surface()
#get width
x = screen.get_width()
#get height
y = screen.get_height()