|
|
@@ -6,24 +6,21 @@ HEIGHT = 708 |
|
|
|
|
|
|
|
def on_mouse_down(): |
|
|
|
print('Clic souris !') |
|
|
|
titi.y = titi.y - 50 |
|
|
|
titi.x = titi.x - 30 |
|
|
|
print (titi.x) |
|
|
|
|
|
|
|
def update(): |
|
|
|
titi.y += 1 |
|
|
|
titi.x += 1 |
|
|
|
|
|
|
|
def update(): |
|
|
|
titi.y += titi.speed |
|
|
|
titi.x += titi.speed |
|
|
|
|
|
|
|
def draw(): |
|
|
|
screen.blit('background', (0, 0)) |
|
|
|
titi.draw() |
|
|
|
|
|
|
|
titi = Actor ('bird1', (75,350)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
titi = Actor ('bird1', (75,150)) |
|
|
|
titi.speed = 1 |
|
|
|
|
|
|
|
pgzrun.go() |
|
|
|
|
|
|
|