(self, x, y, r, fill_color='black', line_color='red')
| 61 | self.add_ball(x, y, r) |
| 62 | |
| 63 | def add_ball(self, x, y, r, fill_color='black', line_color='red'): |
| 64 | ball = Ball(x, y, r, self.graph_elem) |
| 65 | self.arena_balls.append(ball) |
| 66 | area.space.add(ball.body, ball.shape) |
| 67 | ball.gui_circle_figure = self.graph_elem.draw_circle( |
| 68 | (x, y), r, fill_color=fill_color, line_color=line_color) |
| 69 | return ball |
| 70 | |
| 71 | def shoot_a_ball(self, x, y, r, vector=(-10, 0), fill_color='black', line_color='red'): |
| 72 | ball = self.add_ball( |
no test coverage detected