1 Star 5 Fork 6

随风 / TestCocosInIOS

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

测试cocoscreator和原生iOS进行集成,使用cocoscreator 2.4.0。

cocosProj下为cocoscreator游戏工程,TestCocos为原生iOS工程,cocos文件夹下为cocos游戏发布后的iOS工程部分文件,每次修改游戏后重新发布,然后把build目录下的assets、src文件夹以及main.js、project.json拷贝到cocos目录下对应的位置进行替换即可。

由于cocos2d-x引擎文件比较大就没上传,只需把2.4.0对应的cocos2d-x放到cocos/frameworks目录下即可,另外要修改CCApplication-ios.mm文件里的end方法:

void Application::end()
{
    //    delete this;
    //
    //    exit(0);
    
    // 上面是原来的样子
#if USE_AUDIO
    AudioEngine::end();
#endif
    // stop main loop
    [(MainLoop*)_delegate stopMainLoop];
}

About

测试cocoscreator工程集成到原生iOS工程, 使用cocoscreator 2.4.0版本,需要把cocos2的-x目录放到cocos/frameworks下即可直接运行。 expand collapse
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
1
https://gitee.com/skyxu123/test-cocos-in-ios.git
git@gitee.com:skyxu123/test-cocos-in-ios.git
skyxu123
test-cocos-in-ios
TestCocosInIOS
master

Search