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.

26 satır
340 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. titi.speed = 0
  14. def update():
  15. titi.x += titi.speed
  16. titi.speed = 1
  17. pgzrun.go()