Parcourir la source

challenge 1

chapitre-1-challenge-1
antoine il y a 3 ans
Parent
révision
5090710ae0
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. +4
    -2
      birdie.py

+ 4
- 2
birdie.py Voir le fichier

@@ -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


Chargement…
Annuler
Enregistrer