C语言制作打蜜蜂游戏(二)

2014-11-23 21:38:06 · 作者: · 浏览: 20
* int delaytime=1000,tanke_top=20;

int temcolor=getcolor();

setcolor(0);

CreateZidan(x,y);

setcolor(2);

y=y-tanke_size;

CreateZidan

(x,y);

tanke_current_y=y;

setcolor(temcolor);*/

if(zidan_current_y==tanke_top)

{

CreateZidan(zidan_current_x,zidan_current_y,getbkcolor());

zidan_current_x = -1;

}

if(zidan_current_x==-1)

{

CreateZidan(tanke_current_x,tanke_current_y-tanke_size,zidan_color);

zidan_current_x=tanke_current_x;

zidan_current_y=tanke_current_y-tanke_size;

time_delay();

}

else

{

CreateZidan(zidan_current_x,zidan_current_y,getbkcolor());

zidan_current_y -= tanke_size;

CreateZidan(zidan_current_x,zidan_current_y,zidan_color);

time_delay();

}

IfEat();

}

IfEat()

{

/*zidan_current_x,zidan_curren