Преглед на файлове

bckground

chapitre-1-challenge-1
Michael преди 3 години
родител
ревизия
561d9e0a1c
променени са 1 файла, в които са добавени 5 реда и са изтрити 5 реда
  1. +5
    -5
      birdie.py

+ 5
- 5
birdie.py Целия файл

@@ -5,21 +5,21 @@ WIDTH = 400
HEIGHT = 708

titi = Actor('bird1', (151, 350))
titi2 = Actor('bird1', (11, 250))
titi2 = Actor('birddead', (11, 250))

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

def on_mouse_down():
print('Clic souris !')
titi.speed += 1
titi2.speed += 2
titi2.speed += 4

def on_mouse_up():
titi.speed += 1
titi2.speed += 2
titi2.speed += 4
def update():
@@ -37,7 +37,7 @@ def update():
titi2.x += titi.speed

titi.speed = 1
titi2.speed = 1
titi2.speed = 6


pgzrun.go()

Зареждане…
Отказ
Запис