Explorar el Código

Solution retravailée au cours

chapitre-1-challenge-1
padre
commit
1e849cd3fb
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. +4
    -2
      birdie.py

+ 4
- 2
birdie.py Ver fichero

@@ -6,15 +6,17 @@ HEIGHT = 708

def on_mouse_down():
print('Clic souris !')
titi.x -= 50 # équivalent à titi.y = titi.y - 50
titi.y += 50

def update():
titi.x += 1
titi.x += titi.vitesse

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

titi = Actor('bird1', (75, 350))
titi.vitesse = 1

pgzrun.go()

Cargando…
Cancelar
Guardar