xcode与eclipse整合cocos2dx

文档xcode版本是  204
1.
在xcode中创建cocos2dx项目
TestGame
我的路径为
/Users/zhaoshun/cocos2dx/cocoWork/TestGame

2.
用create-android-project.sh 脚本创建 android版本的TestGame

3.
将android版本的TestGame里面的proj.android 整个文件夹拷贝到
ios版的TestGame
拷贝后的路径
/Users/zhaoshun/cocos2dx/cocoWork/TestGame/TestGame/proj.android

4.
修改
/Users/zhaoshun/cocos2dx/cocoWork/TestGame/TestGame/proj.android/build_native.sh文件
NDK_ROOT="/Users/zhaoshun/android/android-ndk-r8e"
COCOS2DX_ROOT="/Users/zhaoshun/cocos2dx/cocos2d-2.0-x-2.0.4"
APP_ROOT="/Users/zhaoshun/cocos2dx/cocoWork/TestGame/TestGame"
APP_ANDROID_ROOT="/Users/zhaoshun/cocos2dx/cocoWork/TestGame/TestGame/proj.android"


5.
运行build_native.sh

6.
在eclipse中导入
/Users/zhaoshun/cocos2dx/cocoWork/TestGame/TestGame/proj.android/

猜你喜欢

转载自abc20899.iteye.com/blog/1914795