Skip to content

Commit

Permalink
Merge pull request #24 from lmh-leo/main
Browse files Browse the repository at this point in the history
Fix action_type = None when playing with partial vision
  • Loading branch information
mingzhang96 authored Dec 21, 2021
2 parents 0eca930 + d013e24 commit b6ef63a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gobigger/bin/play.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def play_control_by_keyboard_partial():
for i in range(100000):
actions = None
x, y = None, None
action_type = -1
# ================ control by keyboard ===============
for event in pygame.event.get():
if event.type == pygame.KEYDOWN:
Expand Down

0 comments on commit b6ef63a

Please sign in to comment.