()
| 266 | |
| 267 | |
| 268 | def create_ball(): |
| 269 | global ball, ball_sprite, game_manager |
| 270 | ball = Ball( |
| 271 | "assets/ball.png", |
| 272 | WIDTH / 2, |
| 273 | HEIGHT / 2, |
| 274 | 4, |
| 275 | 4, |
| 276 | paddle_group, |
| 277 | ) |
| 278 | ball_sprite = pygame.sprite.GroupSingle() |
| 279 | ball_sprite.add(ball) |
| 280 | |
| 281 | game_manager = Game_Manager(ball_sprite, paddle_group) |
| 282 | |
| 283 | |
| 284 | # General Setup |
no test coverage detected