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

3 年前
3 年前
3 年前
12345678910111213141516171819202122232425262728293031
  1. import pgzrun
  2. TITLE = "Paf l'oiseau"
  3. WIDTH = 400
  4. HEIGHT = 700
  5. titi = Actor('bird1', (75,350))
  6. titi.speed = 1
  7. def on_mouse_down():
  8. print('Clic souris !')
  9. titi.y -= 50
  10. def update():
  11. titi.y += titi.speed
  12. def draw():
  13. screen.blit('background',(0,0))
  14. titi.draw()
  15. pgzrun.go()