forked from Cryz/battle_royale_sim
spawn random items, and try to put on map, but i still need to investigate why items are not correctly rendered on map
This commit is contained in:
@@ -58,14 +58,9 @@ class BrSimMap():
|
||||
for player in self.players:
|
||||
p_coord_x, p_coord_y= player.get_coordinates()
|
||||
self.game_map[p_coord_y][p_coord_x]= player
|
||||
#if not player.is_alive(): self.game_map[p_coord_y][p_coord_x]= self.dead_player_sym
|
||||
#elif player.player_gender_is_male(): self.game_map[p_coord_y][p_coord_x]= self.player_male_sym
|
||||
#elif player.player_gender_is_female(): self.game_map[p_coord_y][p_coord_x]= self.player_female_sym
|
||||
#else: self.game_map[p_coord_y][p_coord_x]= self.player_nonbinary_sym
|
||||
for item in self.items:
|
||||
i_coord_x, i_coord_y= item.get_coordinates()
|
||||
self.game_map[p_coord_y][p_coord_x]= item
|
||||
#self.game_map[i_coord_y][i_coord_x]= self.item_sym
|
||||
|
||||
def _put_resource_on_map(self, target):
|
||||
#x= _random.randint(1, self.world_width -2) # from 1 to width-2 because 1 cell is occupied by the mountain
|
||||
|
||||
Reference in New Issue
Block a user