MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

Flappy Bird - created with tkinter/Flappy Bird.py:41–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

39# Pipe class
40class Pipe:
41 def __init__(self):
42 self.image = pipe_image
43 self.x = screen_width
44 self.y = random.randint(150, screen_height - 150)
45 self.vel = 5
46
47 def update(self):
48 self.x -= self.vel

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected