Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Inscrição
Iniciar sessão
Pol.lessire
/
paf-loiseau
derivado de
fabien.toune/paf-loiseau
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Questões
0
Pedidos de integração
0
Lançamentos
0
Wiki
Trabalho
Ver a proveniência
Chapitre 1 - fin
chapitre-1-end
Lapin-Blanc
há 3 anos
ascendente
cc56a2f4b2
cometimento
8bbe166b91
1 ficheiros alterados
com
21 adições
e
0 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+21
-0
birdie.py
+ 21
- 0
birdie.py
Ver ficheiro
@@ -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é-visualizar
Carregando…
Cancelar
Guardar