This website works better with JavaScript.
Почетна
Преглед
Помоћ
Регистрација
Пријавите Се
melissa.bastin
/
paf-loiseau
изданак од
fabien.toune/paf-loiseau
Прати
1
Волим
0
Креирај огранак
0
Код
Дискусије
0
Захтеви за спајање
0
Издања
0
Вики
Activity
Преглед изворни кода
challenge 6
challenge-6
Melissa
пре 3 година
родитељ
c8b80faa17
комит
b25544f4a2
1 измењених фајлова
са
7 додато
и
3 уклоњено
Подељен поглед
Diff Options
Show Stats
Download Patch File
Download Diff File
+7
-3
birdie.py
+ 7
- 3
birdie.py
Прегледај датотеку
@@ -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
Write
Preview
Loading…
Откажи
Сачувај