瀏覽代碼

premier challenge en cours

chapitre-1-challenge-1
父節點
當前提交
3427c26885
共有 1 個文件被更改,包括 20 次插入1 次删除
  1. +20
    -1
      birdie.py

+ 20
- 1
birdie.py 查看文件

@@ -1 +1,20 @@
print('Hello world !')
import pgzrun

TITLE = "Paf l'oiseau"
WIDTH = 400
HEIGHT = 708

def on_mouse_down():
print('Clic souris !')
titi.x -= 50 # équivalent à titi.y = titi.y - 50

def update():
titi.x += 1

def draw():
screen.blit('background', (0, 0))
titi.draw()

titi = Actor('bird1', (75, 350))

pgzrun.go()

Loading…
取消
儲存