Un petit jeu réalisé avec pgzero
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

il y a 3 ans
il y a 3 ans
il y a 3 ans
il y a 3 ans
il y a 3 ans
1234567891011121314151617181920212223
  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 draw():
  8. screen.blit('background',(0,0))
  9. titi.draw()
  10. def on_mouse_down():
  11. print('Clic souris!')
  12. titi.y -= 50
  13. def update():
  14. titi.y += titi.speed
  15. if titi.y > 700:
  16. titi.y = 0
  17. pgzrun.go()