2007. 6. 14. 18:18
Code/NodeBox
size(200,200)
speed(20)
def setup():
global frame
global y
frame = 0
y=0
def draw():
global frame
global y
frame += 1
x=frame*10
fill(0,0,0)
rect (x, y, 10, 10)
if x>WIDTH:
frame=0
y += 50
if y>HEIGHT:
frame=0
y=0
speed(20)
def setup():
global frame
global y
frame = 0
y=0
def draw():
global frame
global y
frame += 1
x=frame*10
fill(0,0,0)
rect (x, y, 10, 10)
if x>WIDTH:
frame=0
y += 50
if y>HEIGHT:
frame=0
y=0
'Code > NodeBox' 카테고리의 다른 글
ping_class (0) | 2007.06.20 |
---|---|
ping_multi (0) | 2007.06.18 |
ping (0) | 2007.06.18 |
splash (0) | 2007.06.17 |
range() (0) | 2007.06.14 |