forked from Cryz/battle_royale_sim
added end of the map
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user