소스 검색

challenge 6

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

+ 7
- 3
birdie.py 파일 보기

@@ -5,9 +5,13 @@ WIDTH = 400
HEIGHT = 708
direction = 1

def on_mouse_down():
print('Stop!')
titi.speed = 1
def on_mouse_down(button):
if button == mouse.LEFT:
print('freinage')
titi.speed -= 1
elif button == mouse.RIGHT:
print('accélaration')
titi.speed += 1

def on_mouse_up():
titi.speed = 1


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