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.

22 satır
321 B

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