资源简介
我自己用vc做的一个彩色泡泡小游戏,游戏相对比较简单,适合初学者参考!仅供学习使用!

代码片段和文件信息
// ColorHubble.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “ColorHubble.h“
#include “MainFrm.h“
#include “ColorHubbleDoc.h“
#include “ColorHubbleView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CColorHubbleApp
BEGIN_MESSAGE_MAP(CColorHubbleApp CWinApp)
//{{AFX_MSG_MAP(CColorHubbleApp)
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()
/////////////////////////////////////////////////////////////////////////////
// CColorHubbleApp construction
CColorHubbleApp::CColorHubbleApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CColorHubbleApp object
CColorHubbleApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CColorHubbleApp initialization
BOOL CColorHubbleApp::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(CColorHubbleDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CColorHubbleView));
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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 34 2011-02-23 17:01 ColorHubble1.0\SaveGame.dat
文件 1203 2011-02-23 16:29 ColorHubble1.0\SaveHero.h
文件 984 2011-02-23 16:29 ColorHubble1.0\SaveHero.cpp
文件 396 2011-02-24 13:58 ColorHubble1.0\说明文档.txt
文件 12962 2011-02-23 18:38 ColorHubble1.0\ColorHubble.rc
文件 52736 2011-02-23 22:43 ColorHubble1.0\ColorHubble.opt
文件 2967 2011-02-23 22:43 ColorHubble1.0\ColorHubble.clw
文件 4431 2011-02-21 20:40 ColorHubble1.0\ReadMe.txt
文件 1411 2011-02-21 20:40 ColorHubble1.0\ColorHubble.h
文件 4299 2011-02-21 20:40 ColorHubble1.0\ColorHubble.cpp
文件 1234 2011-02-22 22:08 ColorHubble1.0\GameSetting.h
文件 213 2011-02-21 20:40 ColorHubble1.0\StdAfx.cpp
文件 1466 2011-02-23 17:23 ColorHubble1.0\MainFrm.h
文件 200 2011-02-23 17:02 ColorHubble1.0\Hero.dat
文件 1530 2011-02-21 20:40 ColorHubble1.0\ColorHubbleDoc.h
文件 5259 2011-02-22 23:59 ColorHubble1.0\ColorHubble.dsp
文件 2795 2011-02-23 18:02 ColorHubble1.0\MainFrm.cpp
文件 2737 2011-02-23 16:52 ColorHubble1.0\ColorHubbleView.h
文件 403 2011-02-21 20:40 ColorHubble1.0\res\ColorHubble.rc2
文件 1078 2011-02-21 20:40 ColorHubble1.0\res\ColorHubbleDoc.ico
文件 1078 2011-02-21 20:40 ColorHubble1.0\res\Toolbar.bmp
文件 1078 2011-02-21 21:13 ColorHubble1.0\res\ColorHubble.ico
文件 322 2011-02-21 23:47 ColorHubble1.0\res\bitmap1.bmp
文件 322 2011-02-21 23:47 ColorHubble1.0\res\bitmap2.bmp
文件 322 2011-02-21 23:47 ColorHubble1.0\res\bitmap3.bmp
文件 322 2011-02-21 23:47 ColorHubble1.0\res\bitmap4.bmp
文件 322 2011-02-21 23:48 ColorHubble1.0\res\bitmap5.bmp
..A.SH. 10240 2011-02-23 18:09 ColorHubble1.0\res\Thumbs.db
文件 1842 2011-02-22 23:03 ColorHubble1.0\ColorHubbleDoc.cpp
文件 1016 2011-02-22 22:10 ColorHubble1.0\GameSetting.cpp
............此处省略92个文件信息
- 上一篇:cf辅助源码
- 下一篇:黄金矿工cocos2d源代码+素材
相关资源
- flash3.0小游戏
- Scrach 欢乐狙击手.sb2
- linux应用层的华容道游戏源代码
- 小鸡快跑游戏.
- [易语言]游戏多开例程
- 贪吃蛇游戏设计(汇编语言)
- VC 游戏编程—附源代码
- C 纸牌游戏——21点
- 分享 mud 文字游戏 源码
- c 制作的RPG小游戏
- 五子棋游戏实现悔棋功能
- 电梯模拟程序C/C 算法实现
- 找不同FLASH游戏源码
- planeGame飞机游戏
- 拼图游戏源代码 powerbuilder 9.0实例
- 解决WPE进不了游戏的最佳方法(闭屏
- linux扫雷游戏代码
- 多线程实例:桌面智能弹球小游戏
- “猜数字”游戏 算法破解
- OpenGL-3D坦克模拟
- 联机版井字棋源码
- 拼图游戏(可自由选择难度)
- 扫雷(MVC架构)
- 解封SHOW 51VV 9158 封机器码类游戏机
- scratch穿越迷宫.sb2
- 小鱼捉迷藏Scratch小游戏
- GlowtoolsA-wdf网易游戏wdf查看及解包
- 游戏音频图像提取工具GARbro
- OPENGL实现世界上最小的3D游戏
- Scrach3.0 跳一跳小游戏
评论
共有 条评论