@sylar_lin 写道:
下了最新的3.13.1版本,正常建立工程:
cocos new -p com.xxx.pdk -l lua -d projects pdk找到simulator工程,编译出simulator.app,用以前正常的命令跑不起来
发现对应的AppDelegate::applicationDidFinishLaunching()函数中少了很多代码,是故意这样子的吗?
如下:
bool AppDelegate::applicationDidFinishLaunching()
{
// set default FPS
Director::getInstance()->setAnimationInterval(1.0 / 60.0f);
auto engine = LuaEngine::getInstance();// Runtime end cocos2d::log("iShow!"); return true;
}
翻到3.10的工程中,是这样的:
bool AppDelegate::applicationDidFinishLaunching()
{
// set default FPS
Director::getInstance()->setAnimationInterval(1.0 / 60.0f);auto engine = LuaEngine::getInstance(); auto runtimeEngine = RuntimeEngine::getInstance(); runtimeEngine->setEventTrackingEnable(true); runtimeEngine->addRuntime(RuntimeLuaImpl::create(), kRuntimeEngineLua); auto jsRuntime = RuntimeJsImpl::create(); runtimeEngine->addRuntime(jsRuntime, kRuntimeEngineJs); runtimeEngine->start(); // js need special debug port if (runtimeEngine->getProjectConfig().getDebuggerType() != kCCRuntimeDebuggerNone) { jsRuntime->startWithDebugger(); } // Runtime end cocos2d::log("iShow!"); return true;
}
3.13.1中最基本的 runtimeEngine->start();都没有,而且工程目录貌似少了这些代码,整个工程找都找不到,只能从3.10中拷过来
还有问多一句,现在simulator不带控制台啦?我用sublime全部输出到sublime的console中??
这样刷新就断掉log拉,而且我要双开simulator来调试分别输出log怎么搞啊。。。。
帖子: 1
参与者: 1