소스 검색

Solution retravailée au cours

chapitre-1-challenge-1
부모
커밋
1e849cd3fb
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. +4
    -2
      birdie.py

+ 4
- 2
birdie.py 파일 보기

@@ -6,15 +6,17 @@ HEIGHT = 708

def on_mouse_down():
print('Clic souris !')
titi.x -= 50 # équivalent à titi.y = titi.y - 50
titi.y += 50

def update():
titi.x += 1
titi.x += titi.vitesse

def draw():
screen.blit('background', (0, 0))
titi.draw()

titi = Actor('bird1', (75, 350))
titi.vitesse = 1

pgzrun.go()

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