이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
탐색
도움말
가입하기
로그인
melissa.bastin
/
paf-loiseau
원본 프로젝트 :
fabien.toune/paf-loiseau
보기
1
좋아요
0
포크
0
코드
이슈
0
풀 리퀘스트
0
릴리즈
0
위키
활동
소스 검색
challenge 6
challenge-6
Melissa
3 년 전
부모
c8b80faa17
커밋
b25544f4a2
1개의 변경된 파일
과
7개의 추가작업
그리고
3개의 파일을 삭제
분할 보기
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
쓰기
미리보기
불러오는 중...
취소
저장