Browse Source

installation de base

chapitre-1-start
melo 3 years ago
parent
commit
f73d2a29a9
1 changed files with 13 additions and 2 deletions
  1. +13
    -2
      birdie.py

+ 13
- 2
birdie.py View File

@@ -4,10 +4,21 @@ TITLE = "Paf l'oiseau"
WIDTH = 400
HEIGHT = 708

bird = Actor('bird1', (75, 350))
titi = Actor('bird1', (75, 350))

def draw():
screen.blit('cascade', (0, 0))
screen.blit('background', (0, 0))
titi.draw()

def on_mouse_down():
print('Clic souris !')
titi.y -= 20
titi.x -= -10

def update():
titi.y += titi.speed

titi.speed = 1


pgzrun.go()

Loading…
Cancel
Save