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

Method __init__

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

Source from the content-addressed store, hash-verified

19# Bird class
20class Bird:
21 def __init__(self):
22 self.image = bird_image
23 self.x = 50
24 self.y = screen_height // 2
25 self.vel = 0
26 self.gravity = 1
27
28 def update(self):
29 self.vel += self.gravity

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected