pygame官方手册地址https://www.pygame.org/docs
通常创建screen的方法:pygame.display.
set_mode
()
官方的Api描述为:
Initialize a window or screen for display
set_mode(size=(0, 0), flags=0, depth=0, display=0) -> Surface
注意:当size参数传(0, 0)时,将产生一个与当前屏幕大小相同的Surface(非全屏)。如果想产生全屏,需要给display参数传递pygame.FULLSCREEN值
可选的display值:
pygame.FULLSCREEN create a fullscreen display pygame.DOUBLEBUF recommended for HWSURFACE or OPENGL pygame.HWSURFACE hardware accelerated, only in FULLSCREEN pygame.OPENGL create an OpenGL-renderable display pygame.RESIZABLE display window should be sizeable pygame.NOFRAME display window will have no border or controls pygame.SCALED resolution depends on desktop size and scale graphics
pygame.FULLSCREEN
原文:https://www.cnblogs.com/FreeAkiya/p/13562584.html