資源簡介
一款用QT開發的射擊小游戲,里面包括打包好的游戲程序和源代碼
代碼片段和文件信息
#include?“cannon.h“
#include?
#include?
#include?ame>
#include?
#include?
#include?
#include?
#include?
#include?
CannonField::CannonField(QWidget?*parent?const?char?*name)
????:QWidget(parentname)
{
????//QPalette?palette;
????//QPixmap?pixmap(“:/6.png“);
????//palette.setBrush(QPalette::BackgroundQBrush(pixmap));
????//this->setPalette(palette);
????gameEnded?=?false;
????newTarget();
????ang=45;
????f=0;
????timerCount=0;
????autoShootTimer?=?new?QTimer(this“movement?handler“);
????connect(autoShootTimerSIGNAL(timeout())thisSLOT(moveShot()));
????shoot_ang=0;
????shoot_f=0;
????//setPalette(QPalette(QColor(250250200)));
????/*Qframe?*frame?=?new?Qframe;
????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????1870281??2013-04-29?20:14??Shoot\6.png
?????文件???????6061??2013-04-30?21:59??Shoot\cannon.cpp
?????文件???????1257??2013-04-30?19:06??Shoot\cannon.h
?????文件???????3409??2013-04-30?21:57??Shoot\gamebrd.cpp
?????文件????????497??2013-04-30?19:06??Shoot\gamebrd.h
?????文件???????1936??2013-04-30?21:57??Shoot\lcdrange.cpp
?????文件????????838??2013-04-30?19:06??Shoot\lcdrange.h
?????文件???????3425??2013-04-30?22:55??Shoot\main.cpp
?????文件????????138??2013-04-26?20:10??Shoot\mainwindow.cpp
?????文件????????233??2013-04-26?20:10??Shoot\mainwindow.h
?????文件?????????84??2013-04-29?20:27??Shoot\res.qrc
?????文件????????479??2013-04-30?22:55??Shoot\Shoot.pro
?????文件??????21214??2013-05-01?00:22??Shoot\Shoot.pro.user
?????目錄??????????0??2013-05-01?00:55??Shoot
-----------?---------??----------?-----??----
??????????????1909852????????????????????14
評論
共有 條評論