From fc3bc487ceeae7ddf31f49fb53d3ad29ae33757e Mon Sep 17 00:00:00 2001 From: Cleason Date: Tue, 8 Dec 2020 15:27:32 +0100 Subject: [PATCH] Challenge-1 ok --- birdie.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/birdie.py b/birdie.py index c19d512..3f3f380 100644 --- a/birdie.py +++ b/birdie.py @@ -13,16 +13,18 @@ def draw(): screen.blit('background', (0, 0)) titi.draw() -def on_mouse_up(): - print('Clic souris !') - titi.y -= 50 # équivalent à titi.y = titi.y - 50 +# def on_mouse_up(): +# print('Clic souris !') +# titi.y -= 50 # équivalent à titi.y = titi.y - 50 + def update(): - titi.y += titi.speed + titi.x += titi.speed + + # if titi.x > WIDTH : + # titi.x = 0 -if titi.y > 400 : - titi.y = 0 -titi.speed = 1 +titi.speed = 3 pgzrun.go() \ No newline at end of file