diff --git a/birdie.py b/birdie.py index 7c4fca7..f462a52 100644 --- a/birdie.py +++ b/birdie.py @@ -7,12 +7,15 @@ def draw(): screen.blit('background.png', (0,0)) titi.draw() -def on_mouse_down(): +def on_mouse_down(): print('Clic souris !') - titi.x -= 50 + titi.y -= 50 + titi.speed = 0 + + def update(): - titi.x += titi.speed + titi.y += titi.speed