소스 검색

mise a jour

titi-go
patient 3 년 전
부모
커밋
271b265bda
1개의 변경된 파일14개의 추가작업 그리고 8개의 파일을 삭제
  1. +14
    -8
      birdie.py

+ 14
- 8
birdie.py 파일 보기

@@ -1,21 +1,27 @@
import pgzrun

TITLE = "Paf l'oiseau"
TITLE = "paf l'oiseau"
WIDTH = 400
HEIGHT = 708

def on_mouse_down():
print('Clic souris !')
titi.y -= 50
titi= Actor('bird1', (75, 350))

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

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

titi = Actor('bird1', (75, 350))
titi.speed = 1
def on_mouse_down():
print('Clic souris !')
titi.y -= 50 #
def on_mouse_up():
print('mouse up')
titi.y -= 20

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

pgzrun.go()

불러오는 중...
취소
저장