Šī lapa labāk darbojas, ja pārlūkam ir iespējots JavaScript.
Sākums
Izpētīt
Palīdzība
Reģistrēties
Pierakstīties
Ophelie
/
paf-loiseau
atdalīts no
fabien.toune/paf-loiseau
Vērot
1
Pievienot zvaigznīti
0
Atdalīts
1
Kods
Problēmas
0
Izmaiņu pieprasījumi
0
Laidieni
0
Vikivietne
Aktivitāte
Pārlūkot izejas kodu
chap1-challenge6
chapitre-1-challenge-6
ophelie
pirms 3 gadiem
vecāks
4a1a638b41
revīzija
371010e150
1 mainītis faili
ar
4 papildinājumiem
un
2 dzēšanām
Dalītais skats
Salīdzināšanas iespējas
Rādīt statistiku
Lejupielādēt ielāpa failu
Lejupielādēt izmaiņu failu
+4
-2
birdie.py
+ 4
- 2
birdie.py
Parādīt failu
@@ -14,9 +14,11 @@ def on_mouse_down(): # fonction 'click avec souris'
def on_mouse_up(): # fonction 'quand la souris ne click plus'
print('relache souris')
titi.y += 6
titi.speed = 5
titi.speed = 3
titi.speed += 1
birdi.y += 10
birdi.speed = 8
birdi.speed = 2
birdi.speed += 1
def update():
titi.y += titi.speed # mise a jour (60x/sec) de titi
Rakstīt
Priekšskatītījums
Notiek ielāde…
Atcelt
Saglabāt