赞
踩
在上一期的博客中给大家分享了小屏版的飞机大战的源码和素材
(点击这里进入)
今天给大家带来一个更高级的飞机大战版本
废话不多说,直接看效果
看着不错吧
接下来给大家看看部分源码
- #include "stdafx.h"
- #include "Game.h"
- #include "DealObject.h"
- #include "Tools.h"
-
- IMAGE temp_img, img_bk;
- IMAGE img_plane, img_ufoa, img_ufob, img_ufoc;
- IMAGE img_plane_bullet, img_ufoa_bullet, img_ufob_bullet;
-
- int Input = NOTINPUT;
- int Score = 0;
-
-
- void PlayMusic(int type){
-
- //根据需要的类型播放或关闭音乐
- switch (type)
- {
- case BGM:
- mciSendString(TEXT("

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。