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
12345678910111213141516171819202122232425
  1. import pgzrun
  2. TITLE = "Paf l'oiseau"
  3. WIDTH = 400
  4. HEIGHT = 708
  5. titi = Actor('bird1', (75, 350))
  6. def draw():
  7. screen.blit('background', (0, 0))
  8. titi.draw()
  9. def on_mouse_down():
  10. print('Clic souris !')
  11. #titi.y -= 20
  12. #titi.x -= -10
  13. titi.speed = 0
  14. def update():
  15. titi.x += titi.speed
  16. titi.speed = 1
  17. pgzrun.go()