From a1daa3e91e2ca6613e2ec3b171d9247111b24a80 Mon Sep 17 00:00:00 2001 From: Cleason Date: Tue, 8 Dec 2020 15:51:59 +0100 Subject: [PATCH] challenge-4-ok --- birdie.py | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/birdie.py b/birdie.py index 5758913..61e9124 100644 --- a/birdie.py +++ b/birdie.py @@ -4,30 +4,19 @@ TITLE = "Paf l'oiseau" WIDTH = 400 HEIGHT = 708 -def draw(): - screen.blit('cascade', (0, 0)) - titi = Actor('bird1', (75, 350)) +bird = Actor('bird0', (75, 350)) def draw(): screen.blit('background', (0, 0)) titi.draw() - -def on_mouse_up(): - print('Clic souris !') - titi.speed = 10 - -def on_mouse_down(): - titi.speed = 0 - + bird.draw() def update(): titi.x += titi.speed - - # if titi.x > WIDTH : - # titi.x = 0 - + bird.x += bird.speed titi.speed = 3 +bird.speed = 5 pgzrun.go() \ No newline at end of file