Przeglądaj źródła

installation de base

chapitre-1-start
melo 3 lat temu
rodzic
commit
f73d2a29a9
1 zmienionych plików z 13 dodań i 2 usunięć
  1. +13
    -2
      birdie.py

+ 13
- 2
birdie.py Wyświetl plik

@@ -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()

Ładowanie…
Anuluj
Zapisz