Browse Source

last maj

chapitre-1-start
gaetanv 3 years ago
parent
commit
2a06d6470b
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      bird.py

+ 6
- 5
bird.py View File

@@ -18,14 +18,16 @@ def draw():
def on_mouse_down(pos):
print( pos, 'est la position lors du clic gauche')
titi.backupspeed = titi.speed
tutu.backupspeed = tutu.speed
titi.speed = 0
tutu.speed = 0
def on_mouse_up (pos):
print( pos)
titi.speed = 10
tutu.speed = 10
titi.speed = titi.backupspeed + 2
tutu.speed = tutu.backupspeed + 2
def update():
titi.x += titi.speed
tutu.y += tutu.speed
@@ -33,9 +35,8 @@ def update():
titi.x = 0
if tutu.y > 700 :
tutu.y = 10



titi.speed = 1
tutu.speed = 1


Loading…
Cancel
Save