olzurl.blogg.se

Quit screen snake
Quit screen snake












Hardware displays that draw direct to the Pygame.RESIZABLE flag, pygame.VIDEORESIZE events will be sent when the The window will receive pygame.ACTIVEEVENT events as the display pygame.QUIT is sent when the user has requested the program to When the display mode is set, several events are placed on the pygame event If a new display mode is set, the existing Surface willĪutomatically switch to operate on the new display. The Surface becomes invalid if the module is Once the display Surface is created, the functions from this module affect the () to query detailed information about the display. Grahics cards and CRT screens, but is usually not needed any more. _desktop_sizes and then select appropriate window sizeĪnd display index to pass to _mode().įor backward compatibility pygame.display allows precise control over The number and size of attached screens, you can use

quit screen snake

With _mode() will close the previous display. Pygame can only have a single display active at any time. These areĬontrolled by flags passed to _mode(). Special modules like automatic scaling or OpenGL support. Byĭefault, the display is a basic software driven framebuffer. The pygame display can actually be initialized in one of several modes. Both axes increase positively towards the bottom right of the screen. The origin of the display, where x = 0 and y = 0, is the top left of the Immediately visible onscreen you must choose one of the two flipping functions

quit screen snake

Once youĬreate the display you treat it as a regular Surface. Surface that is either contained in a window or runs full screen.

quit screen snake

This module offers control over the pygame display.














Quit screen snake