Un petit jeu réalisé avec pgzero
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
377 B

  1. import pgzrun
  2. TITLE = "Paf l'oiseau"
  3. WIDTH = 400
  4. HEIGHT = 708
  5. def draw():
  6. screen.blit('cascade', (0, 0))
  7. titi = Actor('bird1', (75, 350))
  8. def draw():
  9. screen.blit('background', (0, 0))
  10. titi.draw()
  11. def on_mouse_down():
  12. titi.speed += 1
  13. def update():
  14. titi.x += titi.speed
  15. if titi.left > WIDTH :
  16. titi.right = 0
  17. titi.speed = 3
  18. pgzrun.go()