From d3c03835345b7fc4f83a61de504d1d5ddbb5318a Mon Sep 17 00:00:00 2001 From: Maurice Date: Mon, 7 Dec 2020 19:01:16 +0100 Subject: [PATCH] 2 birds --- birdie.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/birdie.py b/birdie.py index 41f581b..2e01c27 100644 --- a/birdie.py +++ b/birdie.py @@ -7,20 +7,25 @@ HEIGHT = 708 def on_mouse_down(): print('Clic souris !') titi.x = titi.x - 30 - print (titi.x) + titi1.x = titi1.x - 100 def update(): titi.x += 1 + titi1.x += 1 def update(): titi.x += titi.speed + titi1.x += titi1.speed def draw(): screen.blit('background', (0, 0)) titi.draw() + titi1.draw() titi = Actor ('bird1', (75,150)) +titi1 = Actor ('bird2', (75,200)) titi.speed = 1 +titi1.speed = 2 pgzrun.go()