Procházet zdrojové kódy

avancement

chapitre-2-Melo
Melo před 3 roky
rodič
revize
4024cade8c
1 změnil soubory, kde provedl 8 přidání a 1 odebrání
  1. +8
    -1
      birdie.py

+ 8
- 1
birdie.py Zobrazit soubor

@@ -9,13 +9,20 @@ def on_mouse_down():
titi.y -= 50

def update():
titi.y += titi.speed
titi.x += titi.speed

def draw():
screen.blit('background', (0, 0))
titi.draw()
tube_sup.draw()
tube_inf.draw()

titi = Actor('bird1', (75, 350))


titi.speed = 1
ecart = 140
tube_sup = Actor ('top',(300,0))
tube_inf = Actor ('bottom',(300,tube_sup.height + ecart))

pgzrun.go()

Načítá se…
Zrušit
Uložit