- self.new_map((0,0), yx)
- self.new_map((0,1), yx)
- self.new_map((1,1), yx)
- self.new_map((1,0), yx)
- self.new_map((1,-1), yx)
- self.new_map((0,-1), yx)
- self.new_map((-1,-1), yx)
- self.new_map((-1,0), yx)
- self.new_map((-1,1), yx)
- for map_pos in self.maps:
- map_ = self.maps[map_pos]
- if (0,0) == map_pos:
- for pos in map_:
- map_[pos] = self.rand.choice(('.', '.', '.', '.', 'x'))
- else:
- for pos in map_:
- map_[pos] = '~'
+ self.map_size = yx
+ map_ = self.get_map(YX(0,0))
+ for pos in map_:
+ map_[pos] = self.rand.choice(('.', '.', '.', '.', 'x'))