dont move boulders diagonal

This commit is contained in:
Dominic DiTaranto 2025-08-29 21:51:14 -04:00
parent 2a182c4fb6
commit b09dca22e5

View file

@ -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]