資源簡介
SDL寫的飛機大戰是非常開始的版本。非常簡單僅供參考
代碼片段和文件信息
//?main.cpp?-?Plane?Battle?Alpha?final?project?main?entry
//?Written?by?Zhen?Sun
#include?“SDL.h“
#include?“SDL_image.h“
#include?
//#include?“Display.h“
#include?“PPlane.h“
#include?“Timer.h“
#include?“PBullet.h“
//?The?screen?attributes
#define?SCREEN_WIDTH???310
#define?SCREEN_HEIGHT??640
#define?SCREEN_BPP??????32
#define?CAPTION???“Plane?Battle?Game“
//?The?frame?rate
#define?frameS_PER_SECOND??20
//?The?surfaces
SDL_Surface?*pPlane?=?NULL;
SDL_Surface?*pBullet?=?NULL;
SDL_Surface?*screen?=?NULL;
//?The?event?structure
SDL_Event?event;
SDL_Surface?*load_image(std::string?filename)
{
//?The?image?that‘s?loaded
SDL_Surface*?loadedImage?=?NULL;
//?The?optimized?surface?that?will?be?used
SDL_Surface*?optimizedImage?=?NULL;
//?Lo
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????2954??2013-11-25?15:19??Debug\cl.command.1.tlog
?????文件???????31750??2013-11-25?15:19??Debug\CL.read.1.tlog
?????文件????????4392??2013-11-25?15:19??Debug\CL.write.1.tlog
?????文件????????2400??2013-11-25?15:21??Debug\li
?????文件????????4910??2013-11-25?15:21??Debug\li
?????文件????????1666??2013-11-25?15:21??Debug\li
?????文件???????80659??2013-11-25?15:21??Debug\main.obj
?????文件?????????668??2013-11-25?15:21??Debug\mt.command.1.tlog
?????文件?????????940??2013-11-25?15:21??Debug\mt.read.1.tlog
?????文件?????????468??2013-11-25?15:21??Debug\mt.write.1.tlog
?????文件????????9451??2013-11-25?15:19??Debug\PBullet.obj
?????文件?????????616??2013-11-25?15:21??Debug\Plane?Battle?Beta.exe.intermediate.manifest
?????文件??????????94??2013-11-25?15:21??Debug\Plane?Battle?Beta.lastbuildstate
?????文件????????2272??2013-11-25?15:21??Debug\Plane?Battle?Beta.log
?????文件?????????713??2013-11-25?14:52??Debug\Plane?Battle?Beta.vcxprojResolveAssemblyReference.cache
?????文件???????????0??2013-11-25?14:52??Debug\Plane?Battle?Beta.write.1.tlog
?????文件???????10636??2013-11-25?14:52??Debug\PPlane.obj
?????文件???????13144??2013-11-25?14:52??Debug\Timer.obj
?????文件??????330752??2013-11-25?15:21??Debug\vc100.idb
?????文件??????241664??2013-11-25?15:21??Debug\vc100.pdb
?????文件????????4110??2013-11-25?15:21??main.cpp
?????文件????????2053??2013-11-25?15:19??PBullet.cpp
?????文件?????????612??2013-11-25?14:34??PBullet.h
?????文件????????4082??2013-11-25?14:34??Plane?Battle?Beta.vcxproj
?????文件????????1536??2013-11-25?14:34??Plane?Battle?Beta.vcxproj.filters
?????文件?????????143??2013-11-25?11:55??Plane?Battle?Beta.vcxproj.user
?????文件?????????464??2013-11-22?16:05??Pla
?????文件???????18416??2013-11-22?16:05??Pla
?????文件????????1748??2013-11-25?14:42??PPlane.cpp
?????文件?????????611??2013-11-25?14:34??PPlane.h
?????文件????????1521??2013-11-25?13:40??Timer.cpp
............此處省略2個文件信息
- 上一篇:EDA彩燈實驗
- 下一篇:Qt開發畫圖軟件 QgraphicsScene
評論
共有 條評論