Explorar el Código

challenge 1

chapitre-1-challenge-1
antoine hace 3 años
padre
commit
5090710ae0
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. +4
    -2
      birdie.py

+ 4
- 2
birdie.py Ver fichero

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


Cargando…
Cancelar
Guardar