浏览代码

Solution retravailée au cours

chapitre-1-challenge-1
父节点
当前提交
1e849cd3fb
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      birdie.py

+ 4
- 2
birdie.py 查看文件

@@ -6,15 +6,17 @@ HEIGHT = 708

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

def update():
titi.x += 1
titi.x += titi.vitesse

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

titi = Actor('bird1', (75, 350))
titi.vitesse = 1

pgzrun.go()

正在加载...
取消
保存