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.

32 rivejä
407 B

  1. import pgzrun
  2. TITLE = "Paf l'oiseau"
  3. WIDTH = 400
  4. HEIGHT = 708
  5. haut = 75
  6. larg = 350
  7. titi = Actor('bird1', (haut, larg))
  8. def draw():
  9. screen.blit('background', (0, 0))
  10. titi.draw()
  11. def on_mouse_down():
  12. print('Clic souris !')
  13. # titi.y -= 20
  14. # titi.x -= -10
  15. titi.speed = 0
  16. def on_mouse_up():
  17. titi.speed = 10
  18. def update():
  19. titi.x += titi.speed
  20. titi.speed = 1
  21. pgzrun.go()