Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Cadastrar
Acessar
Jen
/
paf-loiseau
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Pull requests
0
Versões
0
Wiki
Atividade
Ver código fonte
chapitre1-challenge2
chapitre1-challenge2
Jen
3 anos atrás
pai
684f003e54
commit
3319bd00d5
1 arquivos alterados
com
6 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
+6
-3
birdie.py
+ 6
- 3
birdie.py
Ver arquivo
@@ -7,12 +7,15 @@ def draw():
screen.blit('background.png', (0,0))
titi.draw()
def on_mouse_down():
def on_mouse_down():
print('Clic souris !')
titi.x -= 50
titi.y -= 50
titi.speed = 0
def update():
titi.x += titi.speed
titi.
y
+= titi.speed
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar