Learn Before
Reference
Code Example of Initializing Display with Flags in Pygame
Say you want to have your display launch as a hidden window that goes fullscreen when clicked on. You can store the flags inside a variable called flags and then pass it into display.set_mode() as shown.
flags = pygame.FULLSCREEN | pygame.HIDDEN #store flags for fullscreen and hidden in variable 'flags' window_surface = pygame.display.set_mode((1920, 1080), flags, vsync=1) #create a display of size 1920 * 1080p and with the fullscreen and hidden flags
0
1
Updated 2021-06-16
Tags
Python Programming Language
Data Science