|
|
@@ -9,19 +9,22 @@ titi2 = Actor('birddead', (11, 250)) |
|
|
|
|
|
|
|
def draw(): |
|
|
|
screen.blit('background', (0, 0)) |
|
|
|
screen.blit('bottom', (0, 0)) |
|
|
|
titi.draw() |
|
|
|
titi2.draw() |
|
|
|
|
|
|
|
|
|
|
|
def on_mouse_down(): |
|
|
|
print('Clic souris !') |
|
|
|
titi.speed += 1 |
|
|
|
titi2.speed += 4 |
|
|
|
titi.y -= 15 |
|
|
|
titi2.y += 15 |
|
|
|
|
|
|
|
def on_mouse_up(): |
|
|
|
titi.speed += 1 |
|
|
|
titi2.speed += 4 |
|
|
|
|
|
|
|
def update(): |
|
|
|
print(titi.speed, titi2.speed ) |
|
|
|
|
|
|
|
if titi.x>400: |
|
|
|
titi.x = 0 |
|
|
|