1.导入一个新项目步奏:
解决方案:右键->添加->添加现有项目->
添加依赖项目libCocoStudio
D:workCannonDefendercocos2dcocoseditor-supportcocostudioproj.win32
添加依赖项目libExtensions
D:workCannonDefendercocos2dextensionsproj.win32
添加依赖项目libGUI
D:workCannonDefendercocos2dcocosuiproj.win32
2.项目右键选择引用 添加需要的引用
3.解决方案->添加项目依赖项->选择新加的依赖项
4.某项目右键->引用->添加新引用->选择新加的依赖项
5.往vs2012安装文件E:vs2012VCinclude添加两个文件jni.h jni_md.h
6.调试->项目属性->配置属性->c/c++->附加包含目录->$(EngineRoot)cocosaudioinclude;$(EngineRoot)external;$(EngineRoot)externalchipmunkincludechipmunk;$(EngineRoot)extensions;..Classes;..;$(EngineRoot)cocoseditor-support;$(EngineRoot);%(AdditionalIncludeDirectories)
public Cocos2dxGLSurfaceView onCreateView() {
Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);
return glSurfaceView;
}