DSZI_Survival/src/game/EventManager.py

12 lines
257 B
Python
Raw Normal View History

2020-04-02 17:30:25 +02:00
import pygame
2020-03-31 21:47:09 +02:00
class EventManager:
2020-04-02 17:30:25 +02:00
def __init__(self, gameObject):
self.game = gameObject
def handleEvents(self):
for event in pygame.event.get():
if event.type == pygame.QUIT:
self.game.running = False