使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
注册
登录
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 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+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
撰写
预览
正在加载...
取消
保存