Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Inscrição
Iniciar sessão
Jordan-Pleugers
/
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
mise à jour
chapitre-1-start
Jordan Pleugers
há 3 anos
ascendente
d0b23b4369
cometimento
c45db8638b
1 ficheiros alterados
com
21 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
+21
-1
birdie.py
+ 21
- 1
birdie.py
Ver ficheiro
@@ -1 +1,21 @@
print('Hello world !')
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 = 1
pgzrun.go()
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar