class Engine(object):
- def __init__(self, surface, scene):
+ def __init__(self, surface, scene, state):
self._surface = surface
self._scene = scene
+ self._state = state
def run(self):
clock = pygame.time.Clock()
while True:
+ self._surface.fill((0, 0, 0))
for ev in pygame.event.get():
if ev.type == pgl.QUIT or QuitGameEvent.matches(ev):
self.quit_game()