From e64483ef19f037097ecba82d1f51405ab18044bf Mon Sep 17 00:00:00 2001 From: Boris Ibragimov <44411568+tadaborisu@users.noreply.github.com> Date: Sun, 8 Nov 2020 20:51:37 +0300 Subject: [PATCH] Add files via upload --- blackscreen.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 blackscreen.py diff --git a/blackscreen.py b/blackscreen.py new file mode 100644 index 0000000..9b909f8 --- /dev/null +++ b/blackscreen.py @@ -0,0 +1,16 @@ +import pygame +from win32api import GetSystemMetrics + +pygame.init() +pygame.display.set_caption('Blackscreen by tadaborisu') +gameIcon = pygame.image.load('icon.ico') +pygame.display.set_icon(gameIcon) +screen = pygame.display.set_mode((GetSystemMetrics(0), GetSystemMetrics(1)), pygame.NOFRAME) + +Running = True +while Running: + screen.fill((0, 0, 0)) + for event in pygame.event.get(): + if event.type == pygame.QUIT: + Running = False + \ No newline at end of file