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

Function create_pipe

projects/Flappybird_game/main.py:9–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8
9def 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
16def move_pipe(pipes):

Callers 1

main.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected