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

37 行
497 B

  1. import pgzrun
  2. TITLE = "paf l'oiseau"
  3. WIDTH = 400
  4. HEIGHT = 708
  5. def draw():
  6. screen.blit('bird2', (0, 0))
  7. bird.draw()
  8. titi= Actor('bird1', (75, 350))
  9. def draw():
  10. bird = Actor('bird0', (75, 350))
  11. def draw():
  12. screen.blit('background', (0, 0))
  13. titi.draw()
  14. def on_mouse_down():
  15. print('Clic souris !')
  16. titi.y -= 80 #
  17. def on_mouse_up():
  18. print('mouse up')
  19. titi.y -= 20
  20. def update():
  21. titi.y += 1
  22. titi.speed = 1
  23. titi.y += titi.speed
  24. pgzrun.go()