Bu web sitesi JavaScript ile daha iyi çalışır.
Ana Sayfa
Keşfet
Yardım
Üye Ol
Giriş Yap
myrddin
/
paf-loiseau
şundan çatallanmış
fabien.toune/paf-loiseau
İzle
1
Yıldızla
0
Çatalla
0
Kod
Konular
0
Değişiklik İstekleri
0
Sürümler
0
Wiki
Aktivite
Kaynağa Gözat
etape 2 = oiseau + mouvement oiseau
chapitre1_perso
myrddin
3 yıl önce
ebeveyn
d0b23b4369
işleme
d7a348e29f
1 değiştirilmiş dosya
ile
21 ekleme
ve
1 silme
Görünümü Böl
Diff Seçenekleri
İstatistikleri Göster
Yama Dosyasını İndir
Diff Dosyasını İndir
+21
-1
birdie.py
+ 21
- 1
birdie.py
Dosyayı Görüntüle
@@ -1 +1,21 @@
print('Hello world !')
import pgzrun
TITLE = "Paf l'oiseau"
WIDTH = 400
HEIGHT = 708
titi = Actor('bird1', (75, 350))
def on_mouse_down():
print('Clic souris !')
titi.y -= 10 # équivalent à titi.y = titi.y - 50
def draw():
screen.blit('cascade', (0, 0))
titi.draw()
def update():
titi.y += titi.speed
titi.speed = 3
pgzrun.go()
Yaz
Önizleme
Yükleniyor…
İptal
Kaydet