このサイトはJavaScriptを使用しています
ホーム
エクスプローラー
ヘルプ
登録
サインイン
melissa.bastin
/
paf-loiseau
フォーク元
fabien.toune/paf-loiseau
ウォッチ
1
スター
0
フォーク
0
コード
課題
0
プルリクエスト
0
リリース
0
Wiki
アクティビティ
ソースを参照
challenge 6
challenge-6
Melissa
3年前
親
c8b80faa17
コミット
b25544f4a2
1個のファイルの変更
、
7行の追加
、
3行の削除
分割表示
差分オプション
統計情報を表示
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
書き込み
プレビュー
読み込み中…
キャンセル
保存