Un petit jeu réalisé avec pgzero
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

24 行
327 B

  1. import pgzrun
  2. # Le corps du programme devrait se trouver ici...
  3. TITLE = "Paf l'oiseau"
  4. WIDTH = 400
  5. HEIGHT = 700
  6. titi = Actor('bird1', (75, 350))
  7. def draw():
  8. screen.blit('background', (0, 0))
  9. titi.draw()
  10. def on_mouse_down():
  11. titi.x = 0
  12. def update():
  13. titi.x += titi.speed
  14. titi.speed = 2
  15. pgzrun.go()