Learn Before
Concept

Display in Pygame

Display is a module to control the display window and screen. Using the set_mode method, you can create the Surface that will act as the screen of your game. All other Surfaces for sprites, text, etc. will be drawn on the Surface you created with display. You can have only one display Surface at a time. If you call set_mode again, the previous screen will be replaced with the new Surface generated.

0

1

Updated 2021-06-08

Tags

Python Programming Language

Data Science