Un petit jeu réalisé avec pgzero
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

21 行
336 B

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