소스 검색

chap1-challenge6

chapitre-1-challenge-6
Ophelie 3 년 전
부모
커밋
bb0209f978
1개의 변경된 파일5개의 추가작업 그리고 8개의 파일을 삭제
  1. +5
    -8
      birdie.py

+ 5
- 8
birdie.py 파일 보기

@@ -6,19 +6,17 @@ HEIGHT = 708 #hauteur

def on_mouse_down(): # fonction 'click avec souris'
print('Clique souris !') # sortie en terminal pour verifier si c'est ok
titi.y += 4
titi.y -= 50
titi.speed = 0
birdi.y +=6
birdi.speed =0
birdi.y -= 45
birdi.speed = 0

def on_mouse_up(): # fonction 'quand la souris ne click plus'
print('relache souris')
titi.y += 6
titi.speed = 3
titi.speed += 1
titi.speed += 3
birdi.y += 10
birdi.speed = 2
birdi.speed += 1
birdi.speed += 2

def update():
titi.y += titi.speed # mise a jour (60x/sec) de titi
@@ -29,7 +27,6 @@ def draw():
titi.draw() # 'dessiner' titi
birdi.draw()


birdi = Actor("bird2", (50, 250))
birdi.speed = 2
titi = Actor('bird1', (75, 350)) # définir position de titi


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