91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 2.93MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-09-10
  • 語言: C/C++
  • 標簽:

資源簡介

讓你了解如何用C++寫設計游戲程序,供大家參考學習,前面那個附件上傳錯誤,這個是正確的,

資源截圖

代碼片段和文件信息

#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);
}

void?MYBITMAP::ShowCenter(int?y)
{
xpos=(screenwidth-width)/2;
ypos=y;

Selectobject(hdcsrchBm);
BitBlt(hdcdestxposyposwidthheighthdcsrc00SRCCOPY);
}

void?MYBITMAP::ShowLoop(int?leftint?topint?rightint?bottomint?iframe)
{
int?ij;

Selectobject(hdcsrchBm);
for(j=top;j {
for(i=left;i {
BitBlt(hdcdestijwidthheighthdcsrciframe*width0SRCCOPY);
}
}
}

void?MYBITMAP::ShowNoBack(int?xint?yint?iframe)
{
xpos=x;
ypos=y;
Selectobject(hdcsrchBm);
BitBlt(hdcdestxposyposwidthheight/2hdcsrciframe*widthheight/2SRCAND);
BitBlt(hdcdestxposyposwidthheight/2hdcsrciframe*width0SRCPAINT);
}


void?MYBITMAP::ShowNoBackLoop(int?xint?yint?iframeint?iNum)
{
int?i;
xpos=x;
ypos=y;
Selectobject(hdcsrchBm);
for(i=0;i {
BitBlt(hdcdestxpos+i*widthyposwidthheight/2hdcsrciframe*widthheight/2SRCAND);
BitBlt(hdcdestxpos+i*widthyposwidthheight/2hdcsrciframe*width0SRCPAINT);
}
}

void?MYBITMAP::ShowAni()
{
/* if(!iStartAni)
return;

Selectobject(hdcsrchBm);
BitBlt(hdcdestxposyposwidthheight/2hdcsrcframenow*widthheight/2SRCAND);
BitBlt(hdcdestxposyposwidthheight/2hdcsrcframenow*width0SRCPAINT);

framenow++;
//播放結束
if(framenow>=inum)
iStartAni=0;
*/
}
void?MYBITMAP::SetAni(int?xint?y)
{
xpos=x;
ypos=y;
/*
framenow=0;
iStartAni=1;
*/
}


void?MYBITMAP::SetPos(int?istyleint?xint?y)
{
switch(istyle)
{
case?BM_CENTER:
xpos=(screenwidth-width)/2;
ypos=y;
break;
case?BM_USER:
xpos=x;
ypos=y;
break;
}
}

void?MYBITMAP::Draw(DWORD?dwRop)
{
Selectobject(hdcsrchBm);
BitBlt(hdcdestxposyposwidthheighthdcsrc00dwRop);
}

void?MYBITMAP::Stretch(int?xint?y)
{
Selectobject(hdcsrchBm);
StretchBlt(hdcdestxposyposwidth*xheight*y
hdcsrc00widthheight
SRCCOPY);
}

void?MYBITMAP::Stretch(int?xint?yint?id)
{
Selectobject(hdcsrchBm);
StretchBlt(hdcdestxposyposwidth*xheight*y
hdcsrc0id*height
widthheight
SRCCOPY);
}


////////////////////?bitmap?button?//////////////////////

MYBITMAPBTN::MY

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????8210??2008-06-15?11:18??超級瑪麗源碼\bitmaptool.cpp

?????文件???????2682??2008-06-15?11:17??超級瑪麗源碼\bitmaptool.h

?????文件??????42872??2009-02-14?14:57??超級瑪麗源碼\Debug\bitmaptool.obj

?????文件??????14550??2009-02-14?15:26??超級瑪麗源碼\Debug\BuildLog.htm

?????文件??????11721??2009-02-14?14:57??超級瑪麗源碼\Debug\filereport.obj

?????文件??????38290??2009-02-14?15:26??超級瑪麗源碼\Debug\gamemap.obj

?????文件???????1834??2008-06-15?12:36??超級瑪麗源碼\Debug\map\map1.txt

?????文件????2134016??2009-02-14?15:26??超級瑪麗源碼\Debug\mario01.exe

?????文件????????146??2009-02-14?14:57??超級瑪麗源碼\Debug\mario01.exe.embed.manifest

?????文件????????212??2009-02-14?14:57??超級瑪麗源碼\Debug\mario01.exe.embed.manifest.res

?????文件????????145??2009-02-14?15:26??超級瑪麗源碼\Debug\mario01.exe.intermediate.manifest

?????文件?????276300??2009-02-14?15:26??超級瑪麗源碼\Debug\mario01.ilk

?????文件??????43844??2009-02-14?15:26??超級瑪麗源碼\Debug\mario01.obj

?????文件????3538944??2009-02-14?14:57??超級瑪麗源碼\Debug\mario01.pch

?????文件????2042880??2009-02-14?15:26??超級瑪麗源碼\Debug\mario01.pdb

?????文件????1720688??2008-06-15?12:32??超級瑪麗源碼\Debug\mario01.res

?????文件?????????67??2009-02-14?15:26??超級瑪麗源碼\Debug\mt.dep

?????文件??????82823??2009-02-14?14:57??超級瑪麗源碼\Debug\StdAfx.obj

?????文件???????8996??2009-02-14?15:26??超級瑪麗源碼\Debug\texttool.obj

?????文件??????99328??2008-06-15?12:32??超級瑪麗源碼\Debug\vc60.idb

?????文件?????184320??2008-06-15?12:32??超級瑪麗源碼\Debug\vc60.pdb

?????文件?????240640??2009-02-14?15:26??超級瑪麗源碼\Debug\vc80.idb

?????文件?????282624??2009-02-14?15:26??超級瑪麗源碼\Debug\vc80.pdb

?????文件???????1234??2008-06-08?09:48??超級瑪麗源碼\filereport.cpp

?????文件????????500??2008-06-08?09:47??超級瑪麗源碼\filereport.h

?????文件??????14334??2008-06-15?11:27??超級瑪麗源碼\gamemap.cpp

?????文件???????1738??2008-06-15?11:20??超級瑪麗源碼\gamemap.h

?????文件???????1834??2008-06-15?12:36??超級瑪麗源碼\map\map1.txt

?????文件????1724460??2008-06-15?12:32??超級瑪麗源碼\mario01.aps

?????文件??????10099??2009-02-14?14:57??超級瑪麗源碼\mario01.cpp

............此處省略37個文件信息

評論

共有 條評論

相關資源