文件名称:plane_complete
- 所属分类:
- 其他嵌入式/单片机内容
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 3kb
- 下载次数:
- 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