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.

Birdies.py 327 B

3 jaren geleden
3 jaren geleden
3 jaren geleden
123456789101112131415161718192021222324
  1. import pgzrun
  2. # Le corps du programme devrait se trouver ici...
  3. TITLE = "Paf l'oiseau"
  4. WIDTH = 400
  5. HEIGHT = 700
  6. titi = Actor('bird1', (75, 350))
  7. def draw():
  8. screen.blit('background', (0, 0))
  9. titi.draw()
  10. def on_mouse_down():
  11. titi.x = 0
  12. def update():
  13. titi.x += titi.speed
  14. titi.speed = 2
  15. pgzrun.go()