소스 검색

stop titi

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

+ 5
- 4
birdie.py 파일 보기

@@ -5,16 +5,17 @@ WIDTH = 400
HEIGHT = 708

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

def update():
titi.x += titi.speed
def draw():
screen.blit('background', (0, 0))
titi.draw()
titi = Actor('bird1', (75, 350))
titi.speed = 1

pgzrun.go()

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