From 20ff126cde44f5062f8a4a7e8abd84d0d05dfbfb Mon Sep 17 00:00:00 2001 From: Naunet <44895138+Naunet@users.noreply.github.com> Date: Tue, 26 May 2020 16:43:01 +0200 Subject: [PATCH] Passive loop --- ToDo.txt | 2 -- maze.py | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/ToDo.txt b/ToDo.txt index 85f95d1..2f6ddb5 100644 --- a/ToDo.txt +++ b/ToDo.txt @@ -1,5 +1,3 @@ -2. Make passive wait - 3. Add transitional movement 4. Add clock to screen diff --git a/maze.py b/maze.py index 58f9d17..dfa5789 100644 --- a/maze.py +++ b/maze.py @@ -202,8 +202,7 @@ def draw_end(): end_game = False paused = False while not end_game: - #pygame.event.wait() - for event in pygame.event.get(): + for event in [pygame.event.wait()] + pygame.event.get(): if event.type == USEREVENT+1: pos_x, pos_y = handle_shift(maze, pos_x, pos_y) if event.type == pygame.KEYDOWN: