Browse Source

chapitre1-challenge2

chapitre1-challenge2
Jen 3 years ago
parent
commit
3319bd00d5
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      birdie.py

+ 6
- 3
birdie.py View File

@@ -7,12 +7,15 @@ def draw():
screen.blit('background.png', (0,0))
titi.draw()

def on_mouse_down():
def on_mouse_down():
print('Clic souris !')
titi.x -= 50
titi.y -= 50
titi.speed = 0



def update():
titi.x += titi.speed
titi.y += titi.speed




Loading…
Cancel
Save