Цей веб-сайт працює краще з JavaScript.
Головна
Огляд
Довідка
Реєстрація
Увійти
verkamerloic
/
paf-loiseau
форк від
fabien.toune/paf-loiseau
Слідкувати
1
В обрані
0
Форк
0
Код
Проблеми
0
Запити на злиття
0
Релізи
0
Вікі
Активність
Переглянути джерело
maSolution
chap-1-speed
verkamerloic
3 роки тому
джерело
d0b23b4369
коміт
bce8a4c708
1 змінених файлів
з
19 додано
та
1 видалено
Розділений перегляд
Параметри порівняння
Показати статистику
Завантажити патч
Завантажити файл різниці
+19
-1
birdie.py
+ 19
- 1
birdie.py
Переглянути файл
@@ -1 +1,19 @@
print('Hello world !')
import pgzrun
TITLE = "Paf l'oiseau"
WIDTH = 400
HEIGHT = 708
def on_mouse_down():
print("clic souris !")
titi.y -=50
def update ():
titi.y += titi.speed
def draw():
screen.blit('background', (0, 0))
titi.draw()
titi = Actor("bird1",(75,350))
titi.speed = 1
pgzrun.go()
Писати
Попередній перегляд
Завантаження…
Відмінити
Зберегти