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.

31 satır
548 B

  1. import pgzrun
  2. TITLE = "Paf l'oiseau"
  3. WIDTH = 400
  4. HEIGHT = 500
  5. def on_mouse_down():#Arrête l'itération quand on clic sur la souris
  6. print('clic souris !')
  7. #titi.x == StopIteration
  8. #titi.y == StopIteration
  9. titi.x += 30 # équivalent à titi.y = titi.y - 50
  10. titi.y -= 30
  11. def on_mouse_up():#Avance quand on lache la souris
  12. print("Don't clic souris ! " )
  13. def draw():
  14. screen.blit('cascade', (0, 0))
  15. titi.draw()
  16. titi = Actor('bird1', (0, 0))
  17. def update():
  18. titi.y += titi.speed
  19. titi.speed = 1
  20. pgzrun.go()