我用vc++ 编写的2048小游戏,功能和手机版的基本一致。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3679232 2014-04-17 17:00 Game2048DebugGame2048.bsc
文件 122927 2014-04-17 17:00 Game2048DebugGame2048.exe
文件 770308 2014-04-17 17:00 Game2048DebugGame2048.ilk
文件 23146 2014-04-16 22:37 Game2048DebugGame2048.obj
文件 6956672 2014-04-16 09:34 Game2048DebugGame2048.pch
文件 508928 2014-04-17 17:00 Game2048DebugGame2048.pdb
文件 7496 2014-04-16 22:00 Game2048DebugGame2048.res
文件 0 2014-04-16 22:37 Game2048DebugGame2048.sbr
文件 14911 2014-04-16 09:34 Game2048DebugGame2048Doc.obj
文件 0 2014-04-16 09:34 Game2048DebugGame2048Doc.sbr
文件 49697 2014-04-17 17:00 Game2048DebugGame2048View.obj
文件 0 2014-04-17 17:00 Game2048DebugGame2048View.sbr
文件 20090 2014-04-17 16:58 Game2048DebugMainFrm.obj
文件 0 2014-04-17 16:58 Game2048DebugMainFrm.sbr
文件 106050 2014-04-16 09:34 Game2048DebugStdAfx.obj
文件 1376029 2014-04-16 09:34 Game2048DebugStdAfx.sbr
文件 222208 2014-04-17 17:01 Game2048Debugvc60.idb
文件 380928 2014-04-17 17:00 Game2048Debugvc60.pdb
文件 44056 2014-04-16 22:00 Game2048Game2048.aps
文件 2432 2014-04-17 17:01 Game2048Game2048.clw
文件 4245 2014-04-15 22:13 Game2048Game2048.cpp
文件 4598 2014-04-16 11:56 Game2048Game2048.dsp
文件 539 2014-04-15 22:13 Game2048Game2048.dsw
文件 1378 2014-04-15 22:13 Game2048Game2048.h
文件 66560 2014-04-17 17:01 Game2048Game2048.ncb
文件 50688 2014-04-17 17:01 Game2048Game2048.opt
文件 967 2014-04-17 17:00 Game2048Game2048.plg
文件 11953 2014-04-16 22:00 Game2048Game2048.rc
文件 1782 2014-04-15 22:13 Game2048Game2048Doc.cpp
文件 1497 2014-04-15 22:13 Game2048Game2048Doc.h
............此处省略28个文件信息
// Game2048.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “Game2048.h“
#include “MainFrm.h“
#include “Game2048Doc.h“
#include “Game2048View.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGame2048App
BEGIN_MESSAGE_MAP(CGame2048App CWinApp)
//{{AFX_MSG_MAP(CGame2048App)
ON_COMMAND(ID_APP_ABOUT OnAppAbout)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
// Standard file based document commands
ON_COMMAND(ID_FILE_NEW CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN CWinApp::OnFileOpen)
// Standard print setup command
ON_COMMAND(ID_FILE_PRINT_SETUP CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CGame2048App construction
CGame2048App::CGame2048App()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CGame2048App object
CGame2048App theApp;
/////////////////////////////////////////////////////////////////////////////
// CGame2048App initialization
BOOL CGame2048App::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));
LoadStdProfileSettings(); // Load standard INI file options (including MRU)
// Register the application‘s document templates. Document templates
// serve as the connection between documents frame windows and views.
CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CGame2048Doc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CGame2048View));
AddDocTemplate(pDocTemplate);
// Parse command line for standard shell commands DDE file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
// The one and only window has been initialized so show and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->Up
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3679232 2014-04-17 17:00 Game2048DebugGame2048.bsc
文件 122927 2014-04-17 17:00 Game2048DebugGame2048.exe
文件 770308 2014-04-17 17:00 Game2048DebugGame2048.ilk
文件 23146 2014-04-16 22:37 Game2048DebugGame2048.obj
文件 6956672 2014-04-16 09:34 Game2048DebugGame2048.pch
文件 508928 2014-04-17 17:00 Game2048DebugGame2048.pdb
文件 7496 2014-04-16 22:00 Game2048DebugGame2048.res
文件 0 2014-04-16 22:37 Game2048DebugGame2048.sbr
文件 14911 2014-04-16 09:34 Game2048DebugGame2048Doc.obj
文件 0 2014-04-16 09:34 Game2048DebugGame2048Doc.sbr
文件 49697 2014-04-17 17:00 Game2048DebugGame2048View.obj
文件 0 2014-04-17 17:00 Game2048DebugGame2048View.sbr
文件 20090 2014-04-17 16:58 Game2048DebugMainFrm.obj
文件 0 2014-04-17 16:58 Game2048DebugMainFrm.sbr
文件 106050 2014-04-16 09:34 Game2048DebugStdAfx.obj
文件 1376029 2014-04-16 09:34 Game2048DebugStdAfx.sbr
文件 222208 2014-04-17 17:01 Game2048Debugvc60.idb
文件 380928 2014-04-17 17:00 Game2048Debugvc60.pdb
文件 44056 2014-04-16 22:00 Game2048Game2048.aps
文件 2432 2014-04-17 17:01 Game2048Game2048.clw
文件 4245 2014-04-15 22:13 Game2048Game2048.cpp
文件 4598 2014-04-16 11:56 Game2048Game2048.dsp
文件 539 2014-04-15 22:13 Game2048Game2048.dsw
文件 1378 2014-04-15 22:13 Game2048Game2048.h
文件 66560 2014-04-17 17:01 Game2048Game2048.ncb
文件 50688 2014-04-17 17:01 Game2048Game2048.opt
文件 967 2014-04-17 17:00 Game2048Game2048.plg
文件 11953 2014-04-16 22:00 Game2048Game2048.rc
文件 1782 2014-04-15 22:13 Game2048Game2048Doc.cpp
文件 1497 2014-04-15 22:13 Game2048Game2048Doc.h
............此处省略28个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)