Przeglądaj źródła

3° maj

chapitre-1-start
gaetanv 3 lat temu
rodzic
commit
3efe248694
1 zmienionych plików z 12 dodań i 7 usunięć
  1. +12
    -7
      bird.py

+ 12
- 7
bird.py Wyświetl plik

@@ -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


Ładowanie…
Anuluj
Zapisz