资源简介
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
评论
共有 条评论