Un petit jeu réalisé avec pgzero
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

Birdies.py 327 B

3 yıl önce
3 yıl önce
3 yıl önce
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()