dont move boulders diagonal
This commit is contained in:
parent
2a182c4fb6
commit
b09dca22e5
1 changed files with 3 additions and 0 deletions
3
main.py
3
main.py
|
@ -219,6 +219,9 @@ class Map:
|
|||
return x, y
|
||||
|
||||
def push_boulder(self, tmp_player_y, tmp_player_x, direction):
|
||||
if len(direction.split(' ')) > 1:
|
||||
return False
|
||||
|
||||
tmp_boulder_x, tmp_boulder_y = self.calculate_future_position(tmp_player_x, tmp_player_y, direction)
|
||||
|
||||
future_position = self.map_array[tmp_boulder_y][tmp_boulder_x]
|
||||
|
|
Loading…
Reference in a new issue