Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Inscrição
Iniciar sessão
Chris.VDB
/
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
premier challenge en cours
chapitre-1-challenge-1
Christophe Vandenabeele
há 3 anos
ascendente
d0b23b4369
cometimento
3427c26885
1 ficheiros alterados
com
20 adições
e
1 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+20
-1
birdie.py
+ 20
- 1
birdie.py
Ver ficheiro
@@ -1 +1,20 @@
print('Hello world !')
import pgzrun
TITLE = "Paf l'oiseau"
WIDTH = 400
HEIGHT = 708
def on_mouse_down():
print('Clic souris !')
titi.x -= 50 # équivalent à titi.y = titi.y - 50
def update():
titi.x += 1
def draw():
screen.blit('background', (0, 0))
titi.draw()
titi = Actor('bird1', (75, 350))
pgzrun.go()
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar