|
|
@@ -18,13 +18,15 @@ def draw(): |
|
|
|
|
|
|
|
def on_mouse_down(): |
|
|
|
print('Clic souris !') |
|
|
|
titi.backupspeed= titi.speed |
|
|
|
titi2.backupspeed= titi2.speed |
|
|
|
titi.speed = 0 |
|
|
|
titi2.speed = 0 |
|
|
|
|
|
|
|
def on_mouse_up(): |
|
|
|
print('clic souris !') |
|
|
|
titi.speed = 2 |
|
|
|
titi2.speed = 2 |
|
|
|
titi.speed = titi.backupspeed + 1 |
|
|
|
titi2.speed = titi2.backupspeed + 1 |
|
|
|
|
|
|
|
def update(): |
|
|
|
titi.y += titi.speed |
|
|
|