diff --git a/birdie.py b/birdie.py index a2d6bab..3f44be6 100644 --- a/birdie.py +++ b/birdie.py @@ -1 +1,20 @@ -print('Hello world !') +import pgzrun + +TITLE = "Paf l'oiseau" +WIDTH = 400 +HEIGHT = 708 + +def on_mouse_down(): + print('Clic souris !') + titi.x -= 50 # équivalent à titi.y = titi.y - 50 + +def update(): + titi.x += 1 + +def draw(): + screen.blit('background', (0, 0)) + titi.draw() + +titi = Actor('bird1', (75, 350)) + +pgzrun.go() \ No newline at end of file