在Kobold2d中,在Cocos2d中位于appDelegate中的某些函数位于config.lua文件中。这给我带来了一个问题,那就是将Cocos Builder初始化为cocos2d中的第一个场景,您替换了此行(在应用程序委托中)
[director runWithScene: [IntroLayer scene]];使用
[director runWithScene: [CCBReader sceneWithNodeGraphFromFile:@"MainMenuScene.ccbi"]];但这些都隐藏在Kobold2d中-由config.lua文件中的FirstSceneClassName = "HelloWorldLayer"替换。
有谁知道解决这个问题的方法吗?
发布于 2013-04-20 08:33:47
你仍然可以使用runWithScene,只要把它放在AppDelegate的initializationComplete方法中即可。这将优先于加载config.lua中指定的场景。
https://stackoverflow.com/questions/16113955
复制相似问题