Un petit jeu réalisé avec pgzero
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 3 години
1234567891011121314151617181920212223242526
  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. print('Clic souris !')
  13. titi.y -= 50 # équivalent à titi.y = titi.y - 50
  14. def update():
  15. titi.y += titi.speed
  16. titi.speed = 1
  17. pgzrun.go()