From dc615eaec05e4566861cf2e55eb8e0b3a1857ace Mon Sep 17 00:00:00 2001 From: Melissa Date: Mon, 7 Dec 2020 19:00:54 +0100 Subject: [PATCH] stop titi --- birdie.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/birdie.py b/birdie.py index fc6fb93..b21d276 100644 --- a/birdie.py +++ b/birdie.py @@ -5,16 +5,17 @@ WIDTH = 400 HEIGHT = 708 def on_mouse_down(): - print('Clic souris !') - titi.x -= 50 # équivalent à titi.y = titi.y - 50 + print('Stop!') + titi.speed = 0 def update(): titi.x += titi.speed - + def draw(): screen.blit('background', (0, 0)) titi.draw() - + titi = Actor('bird1', (75, 350)) titi.speed = 1 + pgzrun.go() \ No newline at end of file