diff --git a/bird.py b/bird.py index 4d86136..a031c46 100644 --- a/bird.py +++ b/bird.py @@ -15,8 +15,7 @@ def draw(): tutu.draw() top.draw() bottom.draw() - - + def on_mouse_down(pos): print( pos, 'est la position lors du clic gauche') titi.speed = 0 @@ -24,12 +23,18 @@ def on_mouse_down(pos): def on_mouse_up (pos): print( pos) - titi.speed = 2 - tutu.speed = 2 - + titi.speed = 10 + tutu.speed = 10 + def update(): - titi.x += titi.speed - tutu.y += tutu.speed + titi.x += titi.speed + tutu.y += tutu.speed + if titi.x > 400 : + titi.x = 0 + if tutu.y > 700 : + tutu.y = 10 + + titi.speed = 1 tutu.speed = 1