Strona działa najlepiej z włączonym JavaScript.
Strona główna
Odkrywaj
Pomoc
Zarejestruj się
Zaloguj się
Chris.VDB
/
paf-loiseau
sforkowany z
fabien.toune/paf-loiseau
Obserwuj
1
Polub
0
Forkuj
0
Kod
Zgłoszenia
0
Oczekujące zmiany
0
Wydania
0
Wiki
Aktywność
Przeglądaj źródła
Chapitre 1 - fin
chapitre-1-end
Lapin-Blanc
3 lat temu
rodzic
cc56a2f4b2
commit
8bbe166b91
1 zmienionych plików
z
21 dodań
i
0 usunięć
Widok podzielony
Opcje porównania
Pokaż statystyki
Ściągnij plik aktualizacji
Ściągnij plik porównania
+21
-0
birdie.py
+ 21
- 0
birdie.py
Wyświetl plik
@@ -0,0 +1,21 @@
import pgzrun
TITLE = "Paf l'oiseau"
WIDTH = 400
HEIGHT = 708
def on_mouse_down():
print('Clic souris !')
titi.y -= 50 # équivalent à titi.y = titi.y - 50
def update():
titi.y += titi.speed
def draw():
screen.blit('background', (0, 0))
titi.draw()
titi = Actor('bird1', (75, 350))
titi.speed = 3
pgzrun.go()
Napisz
Podgląd
Ładowanie…
Anuluj
Zapisz