5.1.3 멍멍이와 야옹이가 인사해요3 - 순차
from pgzhelper import *
TITLE = '멍멍이와 야옹이가 인사해요'
WIDTH = 480
HEIGHT = 270
dog = Actor('dog', (100, 150))
dog.scale = 0.5
cat = Actor('cat', (350, 150))
cat.scale = 0.5
cat.flip_x = True
def draw():
screen.fill('white')
dog.draw()
cat.draw()from pgzhelper import *
TITLE = '멍멍이와 야옹이가 인사해요'
WIDTH = 480
HEIGHT = 270
dog = Actor('dog', (100, 150))
dog.scale = 0.5
cat = Actor('cat', (350, 150))
cat.scale = 0.5
cat.flip_x = True
def draw():
screen.fill('white')
dog.draw()
cat.draw()
dog.say_for_sec('멍멍!', 2, fontname='nanum_square')
cat.say_for_sec('야옹~', 2, fontname='nanum_square')
dog.say_for_sec('잘가~', 2, fontname='nanum_square')
cat.say_for_sec('잘있어 안녕!', 2, fontname='nanum_square')

Last updated