import pgzrun # création fenêtre TITLE = "Paf l'oiseau" # définition titre WIDTH = 400 # largeur HEIGHT = 708 #hauteur def on_mouse_down(): # fonction 'si click avec souris' print('Clique souris !') # sortie en terminal pour verifier si c'est ok titi.y -= 100 def update(): titi.y += titi.speed # mise a jour (60x/sec) de titi def draw(): screen.blit('background', (0, 0)) # import arrière plan titi.draw() # 'dessiner' titi titi = Actor('bird1', (75, 350)) # définir position de titi titi.speed = 5 # définir vitesses de chute de titi pgzrun.go() # syntaxe 'conventionnelle' de pgzero