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.

23 lines
337 B

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