Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Cadastrar
Acessar
Jen
/
paf-loiseau
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Pull requests
0
Versões
0
Wiki
Atividade
Ver código fonte
chapitre1-start
chapitre-1-start
Jen
3 anos atrás
pai
d0b23b4369
commit
c467f320ff
1 arquivos alterados
com
35 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
+35
-1
birdie.py
+ 35
- 1
birdie.py
Ver arquivo
@@ -1 +1,35 @@
print('Hello world !')
import pgzrun
TITLE = "Paf l'oiseau"
WIDHT = 400
HEIGHT = 708
def draw():
screen.blit('background.png', (0,0))
titi.draw()
def on_mouse_down():
print('Clic souris !')
titi.y -= 50
def update():
titi.y += titi.speed
titi = Actor('bird1' , (75,350))
titi.speed = 1
pgzrun.go()
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar