Переглянути джерело

2 birds

Haut-Bas-souris-frein-accélération
Maurice 3 роки тому
джерело
коміт
d3c0383534
1 змінених файлів з 6 додано та 1 видалено
  1. +6
    -1
      birdie.py

+ 6
- 1
birdie.py Переглянути файл

@@ -7,20 +7,25 @@ HEIGHT = 708
def on_mouse_down():
print('Clic souris !')
titi.x = titi.x - 30
print (titi.x)
titi1.x = titi1.x - 100

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

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

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

titi = Actor ('bird1', (75,150))
titi1 = Actor ('bird2', (75,200))
titi.speed = 1
titi1.speed = 2

pgzrun.go()



Завантаження…
Відмінити
Зберегти