设为首页 加入收藏

TOP

C语言制作打蜜蜂游戏(二)
2014-11-23 21:38:06 来源: 作者: 【 】 浏览:8
Tags:语言 制作 蜜蜂 游戏
* 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

首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇谈String与StringBuilder的性能 下一篇Windows编程基础 - 概述

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: