Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Cadastrar
Acessar
melissa.bastin
/
paf-loiseau
feito fork de
fabien.toune/paf-loiseau
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Pull requests
0
Versões
0
Wiki
Atividade
Ver código fonte
challenge 6
challenge-6
Melissa
3 anos atrás
pai
c8b80faa17
commit
b25544f4a2
1 arquivos alterados
com
7 adições
e
3 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+7
-3
birdie.py
+ 7
- 3
birdie.py
Ver arquivo
@@ -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
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar