瀏覽代碼

mise a jour

titi-go
patient 3 年之前
父節點
當前提交
271b265bda
共有 1 個文件被更改,包括 14 次插入8 次删除
  1. +14
    -8
      birdie.py

+ 14
- 8
birdie.py 查看文件

@@ -1,21 +1,27 @@
import pgzrun

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

def on_mouse_down():
print('Clic souris !')
titi.y -= 50
titi= Actor('bird1', (75, 350))

def update():
titi.y += titi.speed

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

titi = Actor('bird1', (75, 350))
titi.speed = 1
def on_mouse_down():
print('Clic souris !')
titi.y -= 50 #
def on_mouse_up():
print('mouse up')
titi.y -= 20

def update():
titi.y += 1
titi.speed = 1
titi.y += titi.speed

pgzrun.go()

Loading…
取消
儲存