Переглянути джерело

challenge 1

chapitre-1-challenge-1
antoine 3 роки тому
джерело
коміт
5090710ae0
1 змінених файлів з 4 додано та 2 видалено
  1. +4
    -2
      birdie.py

+ 4
- 2
birdie.py Переглянути файл

@@ -18,13 +18,15 @@ def draw():

def on_mouse_down():
print('Clic souris !')
titi.backupspeed= titi.speed
titi2.backupspeed= titi2.speed
titi.speed = 0
titi2.speed = 0

def on_mouse_up():
print('clic souris !')
titi.speed = 2
titi2.speed = 2
titi.speed = titi.backupspeed + 1
titi2.speed = titi2.backupspeed + 1

def update():
titi.y += titi.speed


Завантаження…
Відмінити
Зберегти