diff --git a/birdie.py b/birdie.py index 50acfdd..ce1bee2 100644 --- a/birdie.py +++ b/birdie.py @@ -5,12 +5,19 @@ WIDTH = 400 HEIGHT = 700 -bird = Actor('bird1', (75,350)) +titi = Actor('bird1', (75,350)) +titi.speed = 1 +def on_mouse_down(): + print('Clic souris !') + titi.y -= 50 + +def update(): + titi.y += titi.speed @@ -19,6 +26,6 @@ bird = Actor('bird1', (75,350)) def draw(): screen.blit('background',(0,0)) - + titi.draw() pgzrun.go()