diff --git a/birdie.py b/birdie.py index 3d98845..e615e96 100644 --- a/birdie.py +++ b/birdie.py @@ -9,13 +9,20 @@ def on_mouse_down(): titi.y -= 50 def update(): - titi.y += titi.speed + titi.x += titi.speed def draw(): screen.blit('background', (0, 0)) titi.draw() + tube_sup.draw() + tube_inf.draw() titi = Actor('bird1', (75, 350)) + + titi.speed = 1 +ecart = 140 +tube_sup = Actor ('top',(300,0)) +tube_inf = Actor ('bottom',(300,tube_sup.height + ecart)) pgzrun.go()