Jeux flappy bird en python
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

30 行
391 B

  1. import pgzrun
  2. TITLE = "vava bird"
  3. WIDTH = 490
  4. HEIGHT = 490
  5. d = 2
  6. g = 1
  7. def update():
  8. global d
  9. if oiseau.y < 470:
  10. oiseau.x += d
  11. if oiseau.y < 470:
  12. oiseau.y += d
  13. if oiseau.y >= 470:
  14. print("Game Over")
  15. def on_mouse_down():
  16. print ('')
  17. def draw():
  18. screen.blit("back", (0, 0))
  19. oiseau.draw()
  20. oiseau = Actor("bird1", (20, 15))
  21. pgzrun.go()