[MFC] 소코반 / 푸쉬 푸쉬 (Sokoban / Push Push)
*용*
다운로드
장바구니
소개글
MFC로 작성된 소코반게임 Push Push 입니다.총 3개의 스테이지로 구성 되어 있습니다.
방향키 상하좌우 : 이동
R : 재시작
Z : Undo
N : 다음 스테이지로 이동
P : 이전 스테이지로 이동
※ 반드시 Visual Studio 2010 이상에서 컴파일 해주시기 바랍니다.
컴파일 실행환경
Microsoft Visual Studio 2010 (C++)본문내용
다음은 ChildView 내용의 일부입니다.// m_row, m_col 은 사람의 위치를 나타낸다.
/* 길에서 움직이는 코드 */
if(nChar == VK_UP && yesorno(m_row,m_col,0) == 2){ //상
savemove(m_row, m_col, 0);
if(goalflag == 1)
{ // 골플래그가 1일 경우 지나간자리에는 골포인트를 그려준다.
nStage[m_row-1][m_col] = `@`;
nStage[m_row][m_col] = `.`;
}
else
{
nStage[m_row-1][m_col] = `@`;
nStage[m_row][m_col] = ` `;
}
--m_row;
rect.left = (m_col)*32; // 이동한 칸, 2칸만 다시 그려준다.
rect.right = (m_col+1)*32;
rect.top = (m_row)*32;
rect.bottom = (m_row+2)*32;
InvalidateRect(&rect,false);
if(goalarea(m_row,m_col))
goalflag = 1; // 현재 이동된 위치가 골포인트 이면, 플래그 1
else goalflag = 0;
return;
}
압축파일 내 파일목록
Debug/Sokoban_Push.exe
Debug/Sokoban_Push.ilk
Debug/Sokoban_Push.pdb
ipch/sokoban_push-61823a64/sokoban_push-4eb3db32.ipch
Release/clear.wav
Release/move.wav
Release/Sokoban_Push.exe
Release/Sokoban_Push.pdb
Release/start.wav
Release/success.wav
Sokoban_Push/ChildView.cpp
Sokoban_Push/ChildView.h
Sokoban_Push/clear.wav
Sokoban_Push/Debug/BuildLog.htm
Sokoban_Push/Debug/ChildView.obj
Sokoban_Push/Debug/MainFrm.obj
Sokoban_Push/Debug/mt.dep
Sokoban_Push/Debug/Sokoban_Push.exe.embed.manifest
Sokoban_Push/Debug/Sokoban_Push.exe.embed.manifest.res
Sokoban_Push/Debug/Sokoban_Push.exe.intermediate.manifest
Sokoban_Push/Debug/Sokoban_Push.obj
Sokoban_Push/Debug/Sokoban_Push.pch
Sokoban_Push/Debug/Sokoban_Push.res
Sokoban_Push/Debug/stdafx.obj
Sokoban_Push/Debug/vc90.idb
Sokoban_Push/Debug/vc90.pdb
Sokoban_Push/MainFrm.cpp
Sokoban_Push/MainFrm.h
Sokoban_Push/move.wav
Sokoban_Push/Point.h
Sokoban_Push/ReadMe.txt
Sokoban_Push/Release/BuildLog.htm
Sokoban_Push/Release/ChildView.obj
Sokoban_Push/Release/cl.command.1.tlog
Sokoban_Push/Release/CL.read.1.tlog
Sokoban_Push/Release/CL.write.1.tlog
Sokoban_Push/Release/link-cvtres.read.1.tlog
Sokoban_Push/Release/link-cvtres.write.1.tlog
Sokoban_Push/Release/link.command.1.tlog
Sokoban_Push/Release/link.read.1.tlog
Sokoban_Push/Release/link.write.1.tlog
Sokoban_Push/Release/MainFrm.obj
Sokoban_Push/Release/mt.command.1.tlog
Sokoban_Push/Release/mt.dep
Sokoban_Push/Release/mt.read.1.tlog
Sokoban_Push/Release/mt.write.1.tlog
Sokoban_Push/Release/rc.command.1.tlog
Sokoban_Push/Release/rc.read.1.tlog
Sokoban_Push/Release/rc.write.1.tlog
Sokoban_Push/Release/Sokoban_Push.exe.intermediate.manifest
Sokoban_Push/Release/Sokoban_Push.lastbuildstate
Sokoban_Push/Release/Sokoban_Push.log
Sokoban_Push/Release/Sokoban_Push.obj
Sokoban_Push/Release/Sokoban_Push.pch
Sokoban_Push/Release/Sokoban_Push.res
Sokoban_Push/Release/stdafx.obj
Sokoban_Push/Release/vc100.pdb
Sokoban_Push/Release/vc90.idb
Sokoban_Push/Release/vc90.pdb
Sokoban_Push/res/Image/Box.BMP
Sokoban_Push/res/Image/Char.bmp
Sokoban_Push/res/Image/Goal_1.bmp
Sokoban_Push/res/Image/Goal_2.bmp
Sokoban_Push/res/Image/Road.bmp
Sokoban_Push/res/Image/start1.bmp
Sokoban_Push/res/Image/start2.bmp
Sokoban_Push/res/Image/start3.bmp
Sokoban_Push/res/Image/start4.bmp
Sokoban_Push/res/Image/start5.bmp
Sokoban_Push/res/Image/start6.bmp
Sokoban_Push/res/Image/Wall.bmp
Sokoban_Push/res/Sokoban_Push.ico
Sokoban_Push/res/Sokoban_Push.rc2
Sokoban_Push/res/Sound/clear.wav
Sokoban_Push/res/Sound/move.wav
Sokoban_Push/res/Sound/start.wav
Sokoban_Push/res/Sound/success.wav
Sokoban_Push/resource.h
Sokoban_Push/Sokoban_Push.aps
Sokoban_Push/Sokoban_Push.cpp
Sokoban_Push/Sokoban_Push.h
Sokoban_Push/Sokoban_Push.rc
Sokoban_Push/Sokoban_Push.vcproj
Sokoban_Push/Sokoban_Push.vcproj.MYCOM.Administrator.user
Sokoban_Push/Sokoban_Push.vcxproj
Sokoban_Push/Sokoban_Push.vcxproj.filters
Sokoban_Push/Sokoban_Push.vcxproj.user
Sokoban_Push/start.wav
Sokoban_Push/stdafx.cpp
Sokoban_Push/stdafx.h
Sokoban_Push/success.wav
Sokoban_Push/targetver.h
Sokoban_Push.sdf
Sokoban_Push.sln
Sokoban_Push.sln.old
Sokoban_Push.suo
Sokoban_Push.suo.old
UpgradeLog.XML
_UpgradeReport_Files/UpgradeReport.css
_UpgradeReport_Files/UpgradeReport.xslt
_UpgradeReport_Files/UpgradeReport_Minus.gif
_UpgradeReport_Files/UpgradeReport_Plus.gif
Debug/Sokoban_Push.ilk
Debug/Sokoban_Push.pdb
ipch/sokoban_push-61823a64/sokoban_push-4eb3db32.ipch
Release/clear.wav
Release/move.wav
Release/Sokoban_Push.exe
Release/Sokoban_Push.pdb
Release/start.wav
Release/success.wav
Sokoban_Push/ChildView.cpp
Sokoban_Push/ChildView.h
Sokoban_Push/clear.wav
Sokoban_Push/Debug/BuildLog.htm
Sokoban_Push/Debug/ChildView.obj
Sokoban_Push/Debug/MainFrm.obj
Sokoban_Push/Debug/mt.dep
Sokoban_Push/Debug/Sokoban_Push.exe.embed.manifest
Sokoban_Push/Debug/Sokoban_Push.exe.embed.manifest.res
Sokoban_Push/Debug/Sokoban_Push.exe.intermediate.manifest
Sokoban_Push/Debug/Sokoban_Push.obj
Sokoban_Push/Debug/Sokoban_Push.pch
Sokoban_Push/Debug/Sokoban_Push.res
Sokoban_Push/Debug/stdafx.obj
Sokoban_Push/Debug/vc90.idb
Sokoban_Push/Debug/vc90.pdb
Sokoban_Push/MainFrm.cpp
Sokoban_Push/MainFrm.h
Sokoban_Push/move.wav
Sokoban_Push/Point.h
Sokoban_Push/ReadMe.txt
Sokoban_Push/Release/BuildLog.htm
Sokoban_Push/Release/ChildView.obj
Sokoban_Push/Release/cl.command.1.tlog
Sokoban_Push/Release/CL.read.1.tlog
Sokoban_Push/Release/CL.write.1.tlog
Sokoban_Push/Release/link-cvtres.read.1.tlog
Sokoban_Push/Release/link-cvtres.write.1.tlog
Sokoban_Push/Release/link.command.1.tlog
Sokoban_Push/Release/link.read.1.tlog
Sokoban_Push/Release/link.write.1.tlog
Sokoban_Push/Release/MainFrm.obj
Sokoban_Push/Release/mt.command.1.tlog
Sokoban_Push/Release/mt.dep
Sokoban_Push/Release/mt.read.1.tlog
Sokoban_Push/Release/mt.write.1.tlog
Sokoban_Push/Release/rc.command.1.tlog
Sokoban_Push/Release/rc.read.1.tlog
Sokoban_Push/Release/rc.write.1.tlog
Sokoban_Push/Release/Sokoban_Push.exe.intermediate.manifest
Sokoban_Push/Release/Sokoban_Push.lastbuildstate
Sokoban_Push/Release/Sokoban_Push.log
Sokoban_Push/Release/Sokoban_Push.obj
Sokoban_Push/Release/Sokoban_Push.pch
Sokoban_Push/Release/Sokoban_Push.res
Sokoban_Push/Release/stdafx.obj
Sokoban_Push/Release/vc100.pdb
Sokoban_Push/Release/vc90.idb
Sokoban_Push/Release/vc90.pdb
Sokoban_Push/res/Image/Box.BMP
Sokoban_Push/res/Image/Char.bmp
Sokoban_Push/res/Image/Goal_1.bmp
Sokoban_Push/res/Image/Goal_2.bmp
Sokoban_Push/res/Image/Road.bmp
Sokoban_Push/res/Image/start1.bmp
Sokoban_Push/res/Image/start2.bmp
Sokoban_Push/res/Image/start3.bmp
Sokoban_Push/res/Image/start4.bmp
Sokoban_Push/res/Image/start5.bmp
Sokoban_Push/res/Image/start6.bmp
Sokoban_Push/res/Image/Wall.bmp
Sokoban_Push/res/Sokoban_Push.ico
Sokoban_Push/res/Sokoban_Push.rc2
Sokoban_Push/res/Sound/clear.wav
Sokoban_Push/res/Sound/move.wav
Sokoban_Push/res/Sound/start.wav
Sokoban_Push/res/Sound/success.wav
Sokoban_Push/resource.h
Sokoban_Push/Sokoban_Push.aps
Sokoban_Push/Sokoban_Push.cpp
Sokoban_Push/Sokoban_Push.h
Sokoban_Push/Sokoban_Push.rc
Sokoban_Push/Sokoban_Push.vcproj
Sokoban_Push/Sokoban_Push.vcproj.MYCOM.Administrator.user
Sokoban_Push/Sokoban_Push.vcxproj
Sokoban_Push/Sokoban_Push.vcxproj.filters
Sokoban_Push/Sokoban_Push.vcxproj.user
Sokoban_Push/start.wav
Sokoban_Push/stdafx.cpp
Sokoban_Push/stdafx.h
Sokoban_Push/success.wav
Sokoban_Push/targetver.h
Sokoban_Push.sdf
Sokoban_Push.sln
Sokoban_Push.sln.old
Sokoban_Push.suo
Sokoban_Push.suo.old
UpgradeLog.XML
_UpgradeReport_Files/UpgradeReport.css
_UpgradeReport_Files/UpgradeReport.xslt
_UpgradeReport_Files/UpgradeReport_Minus.gif
_UpgradeReport_Files/UpgradeReport_Plus.gif
참고 자료
없음이 자료와 함께 구매한 자료
드릴러 게임을 프로그램 작성 한것.(MFC사용) 20페이지
MFC로짠 간단한 팩맨 게임입니다 0페이지
MFC로 구현한 지뢰찾기 24페이지
자신의 성장발달과정을 Erikson의 사회심리적발달 8단계 이론을 근거로 기술하시오 4페이지
[MFC] 오목 게임 0페이지