このサイトはJavaScriptを使用しています
ホーム
エクスプローラー
ヘルプ
登録
サインイン
verkamerloic
/
paf-loiseau
フォーク元
fabien.toune/paf-loiseau
ウォッチ
1
スター
0
フォーク
0
コード
課題
0
プルリクエスト
0
リリース
0
Wiki
アクティビティ
ソースを参照
maSolution
chap-1-speed
verkamerloic
3年前
親
d0b23b4369
コミット
bce8a4c708
1個のファイルの変更
、
19行の追加
、
1行の削除
分割表示
差分オプション
統計情報を表示
Patchファイルをダウンロード
Diffファイルをダウンロード
+19
-1
birdie.py
+ 19
- 1
birdie.py
ファイルの表示
@@ -1 +1,19 @@
print('Hello world !')
import pgzrun
TITLE = "Paf l'oiseau"
WIDTH = 400
HEIGHT = 708
def on_mouse_down():
print("clic souris !")
titi.y -=50
def update ():
titi.y += titi.speed
def draw():
screen.blit('background', (0, 0))
titi.draw()
titi = Actor("bird1",(75,350))
titi.speed = 1
pgzrun.go()
書き込み
プレビュー
読み込み中…
キャンセル
保存