소스 검색

python

master
valdoucet 3 년 전
부모
커밋
cf5e76a0c3
1개의 변경된 파일24개의 추가작업 그리고 0개의 파일을 삭제
  1. +24
    -0
      code.py

+ 24
- 0
code.py 파일 보기

@@ -0,0 +1,24 @@
import pgzrun

TITLE = "vava bird"
WIDTH = 490
HEIGHT = 490

d = 2

def update():
global d
if oiseau.x >= 470 and d > 0:
d = -d
if oiseau.x <= 20 and d < 0:
d = -d
oiseau.x += d


def draw():
screen.blit("back", (0, 0))
oiseau.draw()

oiseau = Actor("bird1", (20, 15))

pgzrun.go()

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