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()