소스 검색

3° maj

chapitre-1-start
gaetanv 3 년 전
부모
커밋
3efe248694
1개의 변경된 파일12개의 추가작업 그리고 7개의 파일을 삭제
  1. +12
    -7
      bird.py

+ 12
- 7
bird.py 파일 보기

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


불러오는 중...
취소
저장