# Bird class
class Bird:
def __init__(self):
self.x = 100
self. y = HEIGHT // 2
self.vel = 0
self.rect = pygame.Rect(self.x, self.y, 30, 30)
def update(self):
self.vel += GRAVITY
self.y += self.vel
self.rect.topleft = (self.x, self.y)
def jump(self):
self.vel = JUMP
def draw(self, win):
win.blit(bird_img,(self.x, self.y))
IyBCaXJkIGNsYXNzCmNsYXNzIEJpcmQ6CiAgICBkZWYgX19pbml0X18oc2VsZik6CiAgICAgICAgc2VsZi54ID0gMTAwCiAgICAgICAgc2VsZi4geSA9IEhFSUdIVCAvLyAyCiAgICAgICAgc2VsZi52ZWwgPSAwCiAgICAgICAgc2VsZi5yZWN0ID0gcHlnYW1lLlJlY3Qoc2VsZi54LCBzZWxmLnksIDMwLCAzMCkKICAgIGRlZiB1cGRhdGUoc2VsZik6CiAgICAgICAgc2VsZi52ZWwgKz0gR1JBVklUWQogICAgICAgIHNlbGYueSArPSBzZWxmLnZlbAogICAgICAgIHNlbGYucmVjdC50b3BsZWZ0ID0gKHNlbGYueCwgc2VsZi55KQogICAgZGVmIGp1bXAoc2VsZik6CiAgICAgICAgc2VsZi52ZWwgPSBKVU1QCiAgICBkZWYgZHJhdyhzZWxmLCB3aW4pOgogICAgICAgIHdpbi5ibGl0KGJpcmRfaW1nLChzZWxmLngsIHNlbGYueSkp