Un petit jeu réalisé avec pgzero
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 3 година
123456789101112131415161718192021
  1. import pgzrun
  2. TITLE = "Paf l'oiseau"
  3. WIDTH = 400
  4. HEIGHT = 708
  5. def on_mouse_down():
  6. print('Clic souris !')
  7. titi.y -= 50 # équivalent à titi.y = titi.y - 50
  8. def update():
  9. titi.y += titi.speed
  10. def draw():
  11. screen.blit('background', (0, 0))
  12. titi.draw()
  13. titi = Actor('bird1', (75, 350))
  14. titi.speed = 3
  15. pgzrun.go()