標題:
基于VC++的推箱子游戲
[打印本頁]
作者:
lzr123LL
時間:
2017-6-6 18:23
標題:
基于VC++的推箱子游戲
推箱子
0.png
(55.92 KB, 下載次數(shù): 57)
下載附件
2017-6-6 18:33 上傳
vc++源主程序如下:
#include "StdAfx.h"
#include "MapManager.h"
MapManager::MapManager()
{
}
MapManager::~MapManager()
{
}
void MapManager::GetMap(int map[][CX],int index)
{
char ch;
char path[200];
int err;
::GetModuleFileName(NULL,path,200);
(::_tcsrchr(path,'\\'))[1]='\0';
strcat(path,"map\\abc.txt");
err=file.Open(path,CFile::modeRead);
if(err!=0)
{
}
for(int k=0;k<index-1;k++)
{
for(int i=0;i<CY;i++)
{
for(int j=0;j<CX;j++)
{
file.Read(&ch,1);
}
file.Read(&ch,1);
}
}
for(int i=0;i<CY;i++)
{
for(int j=0;j<CX;j++)
{
……………………
…………限于本文篇幅 余下代碼請從51黑下載附件…………
復(fù)制代碼
所有資料51hei提供下載:
51CTO下載-VC開發(fā)的推箱子游戲.rar
(2.08 MB, 下載次數(shù): 14)
2017-6-6 18:22 上傳
點擊文件名下載附件
下載積分: 黑幣 -5
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1