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.

birdie.py 336 B

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