Pārlūkot izejas kodu

challenge 5

challenge-6
Melissa pirms 3 gadiem
vecāks
revīzija
c8b80faa17
1 mainītis faili ar 6 papildinājumiem un 2 dzēšanām
  1. +6
    -2
      birdie.py

+ 6
- 2
birdie.py Parādīt failu

@@ -3,6 +3,7 @@ import pgzrun
TITLE = "Paf l'oiseau"
WIDTH = 400
HEIGHT = 708
direction = 1

def on_mouse_down():
print('Stop!')
@@ -13,9 +14,12 @@ def on_mouse_up():
blackbird.speed = 1

def update():
if titi.left > WIDTH:
titi.right = 0
if titi.right < 0:
titi.left = WIDTH
titi.x += titi.speed
blackbird.x += blackbird.speed
def draw():
screen.blit('background', (0, 0))
titi.draw()


Notiek ielāde…
Atcelt
Saglabāt