2 次程式碼提交

作者 SHA1 備註 提交日期
  Cleason fc375203ba Mise à jour 3 年之前
  Cleason fc3bc487ce Challenge-1 ok 3 年之前
共有 1 個檔案被更改,包括 2 行新增8 行删除
分割檢視
  1. +2
    -8
      birdie.py

+ 2
- 8
birdie.py 查看文件

@@ -13,16 +13,10 @@ def draw():
screen.blit('background', (0, 0))
titi.draw()

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

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

if titi.y > 400 :
titi.y = 0

titi.speed = 1
titi.speed = 3

pgzrun.go()

Loading…
取消
儲存