Sfoglia il codice sorgente

simplification du code

chapitre-3-start
Lapin-Blanc 3 anni fa
parent
commit
bcead12480
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. +3
    -3
      birdie.py

+ 3
- 3
birdie.py Vedi File

@@ -12,9 +12,9 @@ def update():
titi.y += titi.speed
tube_superieur.x -= vitesse_defilement
tube_inferieur.x -= vitesse_defilement
if tube_superieur.x + tube_superieur.width/2< 0 :
tube_superieur.x = WIDTH + tube_superieur.width/2
tube_inferieur.x = WIDTH + tube_superieur.width/2
if tube_superieur.right < 0 :
tube_superieur.left = WIDTH
tube_inferieur.left = WIDTH

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


Caricamento…
Annulla
Salva