Skip to content

Commit

Permalink
Passive loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Naunet committed May 26, 2020
1 parent b54f96b commit 20ff126
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions ToDo.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
2. Make passive wait

3. Add transitional movement

4. Add clock to screen
Expand Down
3 changes: 1 addition & 2 deletions maze.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 20ff126

Please sign in to comment.