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.

25 regels
319 B

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