cocos2d-x游戏开发系列教程-超级玛丽03-main函数

时间:2021-10-12 17:09:40

代码下载链接

http://download.csdn.net/detail/yincheng01/6864893

解压密码:c.itcast.cn

main函数内容

#include "main.h"
#include "AppDelegate.h"
#include "CCEGLView.h" USING_NS_CC; int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine); // create the application instance
AppDelegate app;
CCEGLView* eglView = CCEGLView::sharedOpenGLView();
eglView->setViewName("CrazyMario");
eglView->setFrameSize(480, 320);
return CCApplication::sharedApplication()->run();
}

本文以win32的main函数为模板,该部分代码是win32平台特有,不可移植。

_tWinMain是win32程序的主函数,四个参数与cocos2dx关系不大,忽略。

1)定义app对象 AppDelegate app;

AppDelegate是CCApplication的子类,定义的app对象的地址,最后将被保存到CCApplication的静态变量中

可以使用静态函数CCApplication::shareApplication()获取该app的指针。
CCApplication详细信息参见这里

2)创建窗口 CCEGLView* eglView = CCEGLView::sharedOpenGLView();

这句代码创建窗口,代码运行到这里只是创建了一个窗口罢了

eglView->setViewName("CrazyMario");是设置窗口的名字

eglView->setFrameSize(480, 320);是设置窗口的大小。对于不同的设备分辨率不同,窗口大小也不同,会导致很多问题,解决方法见这里

对于CCEGLView类的学习参见这里

3)运行程序CCApplication::shareApplication()->run();进入程序循环

这个代码要注意以下几点:

a.CCApplication::sharedApplication()返回的指针,就是app的地址,因为app是单例,所以一旦定义了一个对象,就不会再建立其他对象。

b.进入消息处理死循环之前,会先调用applicationDidFinishLaunching虚函数,该虚函数在AppDelegate中进行了重载,所以在进入消息处理之前,AppDelegate的applicationDidFinishLaunching函数会先被调用

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdcAAAFzCAIAAADja9RuAAAelElEQVR4nO2dvc7kuJVA9YJ+BOcOHPoBKjAcGfMATjZaGwYWcLK9cDBBpxPswJgFOphgAEdOZ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cHiwMALASLDyK7bE9/1YncivW3oePuwDCCC5g4UNn06TWPuKl/Tt0b7eEjSToD7U9HtvjES7WJZDmANDO2S0cHWlz7BaOUjfidS2c7vCh8YsIDRg+QI5BsTCclwtb2HClOJs7FtNC38jiVLoopbClOC01otW113a4M4hWNnZC6Z5JJ8JR4fPi4/gLK4//YSFsHzXW2keZIGVo54YW9nuhPZoncveUtP1T1Hf0QM74/j2T+i5q/7mg+tTWq7EWC8NQbmthbc4lxhdHydYbkSvSLmqZTaNow5db2JOGPRf2WPgoeCyc/tcyAWjkthbOhgorjVGyEcT6oRZuFF/7Nna3sCcNzcJJGQvDxbi/hSvs7GzplKk/1YoN7GXhor03zsJGzraFg46WhZ9l28JGOc0EI0M7Z7fwrrz7tlcZlVp8u6Y0sp2qs2NWXlFAZ3u7srG+KJmiPbMrV6qFcfZCCx+LkWoNC0c5YGFo5wIWfmKY8YRhYQRnUB4Whu5cxsJ7MvfpGLNjQBjKWuuhYBjBlSwMAHA/sDAAwEqwMADASrAwAMBKsDAAwEqwMADASrAwAMBK/h+stI+tlJAJ5QAAAABJRU5ErkJggg==" alt="" />

applicationDidFinishLaunching函数将在下一篇博文中详细描述。