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