|
123456789101112131415161718192021222324252627282930313233343536 |
- import pgzrun
-
- TITLE = "paf l'oiseau"
- WIDTH = 400
- HEIGHT = 708
-
-
- def draw():
- screen.blit('bird2', (0, 0))
- bird.draw()
- titi= Actor('bird1', (75, 350))
-
- def draw():
-
- bird = Actor('bird0', (75, 350))
-
- def draw():
- screen.blit('background', (0, 0))
- titi.draw()
-
-
- def on_mouse_down():
- print('Clic souris !')
- titi.y -= 80 #
- def on_mouse_up():
- print('mouse up')
- titi.y -= 20
-
- def update():
- titi.y += 1
- titi.speed = 1
- titi.y += titi.speed
-
-
-
- pgzrun.go()
|