Beispiel #1
0
 def initialize_obstacles(self, dirImage, list_obstacles):
     i = 1
     for obst in list_obstacles:
         ob = gb.Obstacle(dirImage, 'ob' + str(i), obst[0], obst[1],
                          'obstacle' + str(i), False)
         self.board.add(ob, obst[0], obst[1])
         i = i + 1
Beispiel #2
0
def initialize_obstacles(imageDir, list_obstacles):
    i = 1
    for obst in list_obstacles:
        ob = gb.Obstacle(imageDir, 'ob' + str(i), obst[0], obst[1],
                         'obstacle' + str(i), False)
        board.add(ob, obst[0], obst[1])
        i = i + 1
Beispiel #3
0
 def initialize_obstacles(self):
     for i, obst in enumerate(self.config["obstacle_coordinates"]):
         ob = gb.Obstacle('ob' + str(i), obst[0], obst[1], self.config,
                          obst[-1] != "invisible")
         self.board.add(ob, obst[0], obst[1])