daisplay game window #2

Merged
s473616 merged 1 commits from pygame_setup into master 2023-03-09 19:46:13 +01:00
2 changed files with 22 additions and 0 deletions

4
gameEventHandler.py Normal file
View File

@ -0,0 +1,4 @@
import pygame
def handle_game_event(event):
return

18
main.py Normal file
View File

@ -0,0 +1,18 @@
import pygame
from gameEventHandler import handle_game_event
pygame.init()
canvas = pygame.display.set_mode((800, 800))
pygame.display.set_caption("Inteligentna śmieciarka")
exit = False
while not exit:
for event in pygame.event.get():
if event.type == pygame.QUIT:
exit = True
else:
handle_game_event(event)
pygame.display.update()