level 9
暗丶魂岁月
楼主
int x=15;
int y=15;
void setup()
{
size(400,400);
smooth();
}
void draw()
{
background(255,0,0);
if(x<=15)
{x=x+1;}
zy();
abc();
bcd();
asd();
}
void abc()
{
if(x>=width-15)
{y=y+1;}
}
void bcd()
{
if(y>=height-15)
{x=x-1;}
}
void asd()
{if(x<=15)
{
y=y-1;
}
}
void zy()
{fill(0,0,255);
ellipse(x,y,30,30);}
2015年12月12日 02点12分
1
int y=15;
void setup()
{
size(400,400);
smooth();
}
void draw()
{
background(255,0,0);
if(x<=15)
{x=x+1;}
zy();
abc();
bcd();
asd();
}
void abc()
{
if(x>=width-15)
{y=y+1;}
}
void bcd()
{
if(y>=height-15)
{x=x-1;}
}
void asd()
{if(x<=15)
{
y=y-1;
}
}
void zy()
{fill(0,0,255);
ellipse(x,y,30,30);}