Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Registro
Iniciar sesión
melissa.bastin
/
paf-loiseau
forkeado de
fabien.toune/paf-loiseau
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Pull Requests
0
Lanzamientos
0
Wiki
Actividad
Explorar el Código
challenge 6
challenge-6
Melissa
hace 3 años
padre
c8b80faa17
commit
b25544f4a2
Se han
modificado 1 ficheros
con
7 adiciones
y
3 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+7
-3
birdie.py
+ 7
- 3
birdie.py
Ver fichero
@@ -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
Escribir
Vista previa
Cargando…
Cancelar
Guardar