Browse Source

challenge 4

challenge-6
Melissa 3 years ago
parent
commit
34f81fe4df
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      birdie.py

+ 6
- 1
birdie.py View File

@@ -6,19 +6,24 @@ HEIGHT = 708

def on_mouse_down():
print('Stop!')
titi.speed = 0
titi.speed = 1

def on_mouse_up():
titi.speed = 1
blackbird.speed = 1

def update():
titi.x += titi.speed
blackbird.x += blackbird.speed
def draw():
screen.blit('background', (0, 0))
titi.draw()
blackbird.draw()
titi = Actor('bird1', (75, 350))
blackbird = Actor('bird2', (95, 150))
titi.speed = 1
blackbird.speed = 2

pgzrun.go()

Loading…
Cancel
Save