Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Cadastrar
Acessar
Jordan-Pleugers
/
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
mise à jour
chapitre-1-start
Jordan Pleugers
3 anos atrás
pai
d0b23b4369
commit
c45db8638b
1 arquivos alterados
com
21 adições
e
1 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+21
-1
birdie.py
+ 21
- 1
birdie.py
Ver arquivo
@@ -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é-visualização
Carregando…
Cancelar
Salvar