資源簡介
教你從頭開始做游戲,十分適合新手,成就游戲人生!
代碼片段和文件信息
//?Finishing?codefans.net
#include?“stdafx.h“
#include?“bitmaptool.h“
#include?“gamemap.h“
extern?GAMEMAP?gamemap;
extern?FILEREPORT?f1;
MYBITMAP::MYBITMAP()
{
}
MYBITMAP::~MYBITMAP()
{
Deleteobject(hBm);
}
void?MYBITMAP::Init(HINSTANCE?hInstanceint?iResourceint?rowint?col)
{
BITMAP?bm;
inum=row;
jnum=col;
hBm=LoadBitmap(hInstanceMAKEINTRESOURCE(iResource));
Getobject(hBmsizeof(BITMAP)&bm);
width=bm.bmWidth/inum;
height=bm.bmHeight/jnum;
}
void?MYBITMAP::SetDevice(HDC?hdestHDC?hsrcint?wwinint?hwin)
{
hdcdest=hdest;
hdcsrc=hsrc;
screenwidth=wwin;
screenheight=hwin;
}
void?MYBITMAP::Show(int?xint?y)
{
xpos=x;
ypos=y;
Selectobject(hdcsrchBm);
BitBlt(hdcdestxposyposwidthheighthdcsrc00SRCCOPY);
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2942??2008-08-23?17:14??bitmaptool.h
?????文件???????1234??2008-06-08?09:48??filereport.cpp
?????文件????????500??2008-06-08?09:47??filereport.h
?????文件??????21504??2008-11-28?16:07??gamemap.cpp
?????文件???????2410??2008-08-21?17:46??gamemap.h
?????文件????3288636??2008-08-24?10:08??mario01.aps
?????文件??????12372??2008-08-24?10:04??mario01.cpp
?????文件????????329??2008-06-07?14:39??mario01.h
?????文件???????1078??2008-08-24?10:07??mario01.ICO
?????文件?????189440??2010-04-18?19:50??mario01.ncb
?????文件???????2245??2010-04-18?19:50??mario01.plg
?????文件???????5088??2008-08-24?10:08??mario01.rc
?????文件???????5597??2008-07-29?19:50??mario01.dsp
?????文件????????520??2008-06-07?14:39??mario01.dsw
?????文件??????51712??2010-04-18?19:50??mario01.opt
?????文件???????1538??2008-06-14?20:13??myclock.h
?????文件?????724480??2008-11-28?16:05??超級瑪麗制作解密.doc
?????文件???????2075??2008-06-07?14:39??ReadMe.txt
?????文件???????1263??2008-07-29?18:50??resource.h
?????文件????????318??2008-08-24?10:08??SMALL.ICO
?????文件????????294??2008-06-07?14:39??StdAfx.cpp
?????文件???????3776??2008-08-21?17:50??StdAfx.h
?????文件???????1004??2008-11-28?16:07??texttool.cpp
?????文件????????707??2008-08-20?17:47??texttool.h
?????文件???????2752??2008-08-06?15:13??tool01.h
?????文件???????2731??2008-08-23?17:01??map\map1.txt
?????文件?????657462??2008-08-20?18:08??pic\ani.bmp
?????文件?????589878??2008-08-21?19:27??pic\animagic.bmp
?????文件?????344454??2008-08-17?15:32??pic\map.bmp
?????文件?????331830??2008-08-17?10:02??pic\mapbk.bmp
............此處省略9個文件信息
- 上一篇:頻率測量的Verilog代碼
- 下一篇:基于BP神經網絡整定的PID控制
評論
共有 條評論