Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Cadastrar
Acessar
myrddin
/
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
Chapitre 1 - fin
chapitre-1-end
Lapin-Blanc
3 anos atrás
pai
cc56a2f4b2
commit
8bbe166b91
1 arquivos alterados
com
21 adições
e
0 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+21
-0
birdie.py
+ 21
- 0
birdie.py
Ver arquivo
@@ -0,0 +1,21 @@
import pgzrun
TITLE = "Paf l'oiseau"
WIDTH = 400
HEIGHT = 708
def on_mouse_down():
print('Clic souris !')
titi.y -= 50 # équivalent à titi.y = titi.y - 50
def update():
titi.y += titi.speed
def draw():
screen.blit('background', (0, 0))
titi.draw()
titi = Actor('bird1', (75, 350))
titi.speed = 3
pgzrun.go()
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar