MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / draw_pipes

Function draw_pipes

projects/Flappybird_game/main.py:22–28  ·  view source on GitHub ↗
(pipes)

Source from the content-addressed store, hash-verified

20
21
22def draw_pipes(pipes):
23 for pipe in pipes:
24 if pipe.bottom >= 512:
25 screen.blit(pipe_surface, pipe)
26 else:
27 flip_pipe = pygame.transform.flip(pipe_surface, False, True)
28 screen.blit(flip_pipe, pipe)
29
30
31def check_collision(pipes):

Callers 1

main.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected