Explorar el Código

premier challenge en cours

chapitre-1-challenge-1
padre
commit
3427c26885
Se han modificado 1 ficheros con 20 adiciones y 1 borrados
  1. +20
    -1
      birdie.py

+ 20
- 1
birdie.py Ver fichero

@@ -1 +1,20 @@
print('Hello world !')
import pgzrun

TITLE = "Paf l'oiseau"
WIDTH = 400
HEIGHT = 708

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

def update():
titi.x += 1

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

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

pgzrun.go()

Cargando…
Cancelar
Guardar