Compare commits
2 Commits
3ad6a27a74
...
c5e9a7de0c
Author | SHA1 | Date | |
---|---|---|---|
c5e9a7de0c | |||
|
4b979c308c |
4
gameEventHandler.py
Normal file
4
gameEventHandler.py
Normal file
@ -0,0 +1,4 @@
|
||||
import pygame
|
||||
|
||||
def handle_game_event(event):
|
||||
return
|
18
main.py
Normal file
18
main.py
Normal 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()
|
Loading…
Reference in New Issue
Block a user