This website works better with JavaScript.
首頁
探索
說明
註冊
登入
melissa.bastin
/
paf-loiseau
複製自
fabien.toune/paf-loiseau
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
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
Write
Preview
Loading…
取消
儲存