bird_y = 200 def update(dt): global bird_y bird_y += 30 * dt def draw(): screen.fill((0, 0, 0)) screen.draw.filled_rect( Rect( (0, 0), (300, 388) ), color=(35, 92, 118) ) screen.draw.filled_rect( Rect( (62, bird_y), (30, 25) ), color=(224, 214, 68) )