文件名称:plane_complete
-
所属分类:
- 标签属性:
- 上传时间:2012-10-16
-
文件大小:3.42kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
基于ucgui的打飞机程序
通过扫描按键控制我机移动(只有4个按键,我们就设置了前后左右4个方向按键,子弹设为自动发射)
敌机移动通过rand函数产生(设敌机最大数为ENEMYMAXNUM,只要低于这数,每次循环就产生敌机否则不生成敌机.敌机只会在Y轴移动,如果敌机与我机相撞,,则发生爆炸)
敌机子弹生成与移动(每架敌机子弹数最多为BULLETMAXNUM,低于这个值,每个循环都会在飞机正前方产生一颗子弹,在Y轴方向移动SPEED.Y.如果子弹碰到我机,则发生爆炸,LIFE减1,重新开始游戏)
我机子弹生成与移动(子弹数最多为MYBULLETMAXNUM,低于这个值,每个循环都会在飞机正前方产生一颗子弹,在Y轴方向移动SPEED.Y.如果子弹碰到敌机,则发生爆炸.)-I drive by scanning the keys to control movement (only four buttons, we set up around four direction buttons, bullets set to automatically launch)
Generated by the rand function to move the enemy (the enemy set the maximum number of ENEMYMAXNUM, as long as less than this number of cycles to produce each enemy or enemy is not generated. The enemy will move in the Y axis, if the enemy with my machine collision, then the explosion)
Generation and mobile enemy bullets (bullets for each enemy aircraft a maximum of BULLETMAXNUM, below this value, each cycle will produce the aircraft in front of a bullet, in the Y-axis direction SPEED.Y. If the bullet hit my machine , then the explosion, LIFE by 1, re-start the game)
My generation and mobile machine bullets (bullets and the maximum number MYBULLETMAXNUM, below this value, each cycle will produce the aircraft in front of a bullet, in the Y-axis direction SPEED.Y. If the bullets hit the enemy, then the explosion .)
通过扫描按键控制我机移动(只有4个按键,我们就设置了前后左右4个方向按键,子弹设为自动发射)
敌机移动通过rand函数产生(设敌机最大数为ENEMYMAXNUM,只要低于这数,每次循环就产生敌机否则不生成敌机.敌机只会在Y轴移动,如果敌机与我机相撞,,则发生爆炸)
敌机子弹生成与移动(每架敌机子弹数最多为BULLETMAXNUM,低于这个值,每个循环都会在飞机正前方产生一颗子弹,在Y轴方向移动SPEED.Y.如果子弹碰到我机,则发生爆炸,LIFE减1,重新开始游戏)
我机子弹生成与移动(子弹数最多为MYBULLETMAXNUM,低于这个值,每个循环都会在飞机正前方产生一颗子弹,在Y轴方向移动SPEED.Y.如果子弹碰到敌机,则发生爆炸.)-I drive by scanning the keys to control movement (only four buttons, we set up around four direction buttons, bullets set to automatically launch)
Generated by the rand function to move the enemy (the enemy set the maximum number of ENEMYMAXNUM, as long as less than this number of cycles to produce each enemy or enemy is not generated. The enemy will move in the Y axis, if the enemy with my machine collision, then the explosion)
Generation and mobile enemy bullets (bullets for each enemy aircraft a maximum of BULLETMAXNUM, below this value, each cycle will produce the aircraft in front of a bullet, in the Y-axis direction SPEED.Y. If the bullet hit my machine , then the explosion, LIFE by 1, re-start the game)
My generation and mobile machine bullets (bullets and the maximum number MYBULLETMAXNUM, below this value, each cycle will produce the aircraft in front of a bullet, in the Y-axis direction SPEED.Y. If the bullets hit the enemy, then the explosion .)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
plane_complete.c
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.