Skip to content

Commit

Permalink
Fix issue pythonarcade#13
Browse files Browse the repository at this point in the history
  • Loading branch information
NarongSaron committed May 2, 2022
1 parent b7df22d commit a0c2ade
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions rpg/views/game_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,12 @@ def on_update(self, delta_time):

# Swap to the new map
self.switch_map(map_name, start_x, start_y)

# Scroll the window to the player
self.scroll_to_player()
else:
# We didn't hit a door, scroll normally
self.scroll_to_player()
else:
# No doors, scroll normally
self.scroll_to_player()

def on_key_press(self, key, modifiers):
"""Called whenever a key is pressed."""
Expand Down

0 comments on commit a0c2ade

Please sign in to comment.