def create_matrix_for_map(self, x, y): if self.tile_map[y][x] == 0: self.map.append(Floor(x, y)) else: self.map.append(Wall(x, y))