Pārlūkot izejas kodu

premier challenge en cours

chapitre-1-challenge-1
Christophe Vandenabeele pirms 3 gadiem
vecāks
revīzija
3427c26885
1 mainītis faili ar 20 papildinājumiem un 1 dzēšanām
  1. +20
    -1
      birdie.py

+ 20
- 1
birdie.py Parādīt failu

@@ -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()

Notiek ielāde…
Atcelt
Saglabāt