Browse Source

3° maj

chapitre-1-start
gaetanv 3 years ago
parent
commit
3efe248694
1 changed files with 12 additions and 7 deletions
  1. +12
    -7
      bird.py

+ 12
- 7
bird.py View File

@@ -15,8 +15,7 @@ def draw():
tutu.draw()
top.draw()
bottom.draw()
def on_mouse_down(pos):
print( pos, 'est la position lors du clic gauche')
titi.speed = 0
@@ -24,12 +23,18 @@ def on_mouse_down(pos):
def on_mouse_up (pos):
print( pos)
titi.speed = 2
tutu.speed = 2
titi.speed = 10
tutu.speed = 10
def update():
titi.x += titi.speed
tutu.y += tutu.speed
titi.x += titi.speed
tutu.y += tutu.speed
if titi.x > 400 :
titi.x = 0
if tutu.y > 700 :
tutu.y = 10


titi.speed = 1
tutu.speed = 1


Loading…
Cancel
Save