diff --git a/bird.py b/bird.py index a031c46..73bdec9 100644 --- a/bird.py +++ b/bird.py @@ -18,14 +18,16 @@ def draw(): def on_mouse_down(pos): print( pos, 'est la position lors du clic gauche') + titi.backupspeed = titi.speed + tutu.backupspeed = tutu.speed titi.speed = 0 tutu.speed = 0 def on_mouse_up (pos): print( pos) - titi.speed = 10 - tutu.speed = 10 - + titi.speed = titi.backupspeed + 2 + tutu.speed = tutu.backupspeed + 2 + def update(): titi.x += titi.speed tutu.y += tutu.speed @@ -33,9 +35,8 @@ def update(): titi.x = 0 if tutu.y > 700 : tutu.y = 10 - - + titi.speed = 1 tutu.speed = 1