|
@@ -6,7 +6,7 @@ HEIGHT = 708 |
|
|
|
|
|
|
|
|
def on_mouse_down(): |
|
|
def on_mouse_down(): |
|
|
print('Clic souris !') |
|
|
print('Clic souris !') |
|
|
titi.y -= 50 # équivalent à titi.y = titi.y - 50 |
|
|
|
|
|
|
|
|
titi.y -= 50 |
|
|
|
|
|
|
|
|
def update(): |
|
|
def update(): |
|
|
titi.y += titi.speed |
|
|
titi.y += titi.speed |
|
@@ -18,4 +18,4 @@ def draw(): |
|
|
titi = Actor('bird1', (75, 350)) |
|
|
titi = Actor('bird1', (75, 350)) |
|
|
titi.speed = 3 |
|
|
titi.speed = 3 |
|
|
|
|
|
|
|
|
pgzrun.go() |
|
|
|
|
|
|
|
|
pgzrun.go() |