Šī 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
melissa.bastin
/
paf-loiseau
atdalīts no
fabien.toune/paf-loiseau
Vērot
1
Pievienot zvaigznīti
0
Atdalīts
0
Kods
Problēmas
0
Izmaiņu pieprasījumi
0
Laidieni
0
Vikivietne
Aktivitāte
Pārlūkot izejas kodu
challenge 6
challenge-6
Melissa
pirms 3 gadiem
vecāks
c8b80faa17
revīzija
b25544f4a2
1 mainītis faili
ar
7 papildinājumiem
un
3 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
+7
-3
birdie.py
+ 7
- 3
birdie.py
Parādīt failu
@@ -5,9 +5,13 @@ WIDTH = 400
HEIGHT = 708
direction = 1
def on_mouse_down():
print('Stop!')
titi.speed = 1
def on_mouse_down(button):
if button == mouse.LEFT:
print('freinage')
titi.speed -= 1
elif button == mouse.RIGHT:
print('accélaration')
titi.speed += 1
def on_mouse_up():
titi.speed = 1
Rakstīt
Priekšskatītījums
Notiek ielāde…
Atcelt
Saglabāt