()
| 7 | |
| 8 | |
| 9 | def create_pipe(): |
| 10 | random_pipe_pos = random.choice(pipe_height) |
| 11 | bottom_pipe = pipe_surface.get_rect(midtop=(500, random_pipe_pos)) |
| 12 | top_pipe = pipe_surface.get_rect(midtop=(500, random_pipe_pos - 450)) |
| 13 | return bottom_pipe, top_pipe |
| 14 | |
| 15 | |
| 16 | def move_pipe(pipes): |