浏览代码

installation de base

chapitre-1-start
melo 3 年前
父节点
当前提交
f73d2a29a9
共有 1 个文件被更改,包括 13 次插入2 次删除
  1. +13
    -2
      birdie.py

+ 13
- 2
birdie.py 查看文件

@@ -4,10 +4,21 @@ TITLE = "Paf l'oiseau"
WIDTH = 400
HEIGHT = 708

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

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

def on_mouse_down():
print('Clic souris !')
titi.y -= 20
titi.x -= -10

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

titi.speed = 1


pgzrun.go()

正在加载...
取消
保存