Strona działa najlepiej z włączonym JavaScript.
Strona główna
Odkrywaj
Pomoc
Zarejestruj się
Zaloguj się
cleason
/
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ść
2 Commity
d179304416
...
fc375203ba
Autor
SHA1
Wiadomość
Data
Cleason
fc375203ba
Mise à jour
3 lat temu
Cleason
fc3bc487ce
Challenge-1 ok
3 lat temu
1 zmienionych plików
z
2 dodań
i
8 usunięć
Widok podzielony
Opcje porównania
Pokaż statystyki
+2
-8
birdie.py
+ 2
- 8
birdie.py
Wyświetl plik
@@ -13,16 +13,10 @@ def draw():
screen.blit('background', (0, 0))
titi.draw()
def on_mouse_up():
print('Clic souris !')
titi.y -= 50 # équivalent à titi.y = titi.y - 50
def update():
titi.
y
+= titi.speed
titi.x += titi.speed
if titi.y > 400 :
titi.y = 0
titi.speed =
1
titi.speed = 3
pgzrun.go()
Napisz
Podgląd
Ładowanie…
Anuluj
Zapisz