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
298 B

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