added end of the map

This commit is contained in:
frostbite
2025-07-28 12:50:52 +02:00
parent 4dcb87723d
commit e604743796

View File

@@ -26,10 +26,15 @@ class BrSimMap():
# ⛰️ this is icon for the mountain (We can prevent players from passing through the mountains and thus use them for map boundaries.) # ⛰️ this is icon for the mountain (We can prevent players from passing through the mountains and thus use them for map boundaries.)
width= [] width= []
mon = []
for i in range(self.world_width): for i in range(self.world_width):
width.append(self.field_sym) mon.append(self.mountain_sym)
for i in range(self.world_width):
if i == 0 or i == 14: width.append(self.mountain_sym)
else: width.append(self.field_sym)
for i in range(self.world_height): for i in range(self.world_height):
self.game_map.append(width) if i == 0 or i == 14: self.game_map.append(mon)
else: self.game_map.append(width)
for player in self.players: for player in self.players:
p_coord_x, p_coord_y= players.get_player_coordinates() p_coord_x, p_coord_y= players.get_player_coordinates()
self.game_map[p_coord_y][p_coord_x]= self.player_sym self.game_map[p_coord_y][p_coord_x]= self.player_sym