소스 검색

maSolution

chap-1-speed
verkamerloic 3 년 전
부모
커밋
bce8a4c708
1개의 변경된 파일19개의 추가작업 그리고 1개의 파일을 삭제
  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()

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