我正在尝试将Facebook插件集成到新的cocos-js3.7项目中。下面的步骤来自:,也来自我现有的3.5项目,这个插件在这里工作得很好。
在编译时,我会得到以下错误:
BUILD FAILED
/Applications/adt-bundle-mac-x86_64-20130729/sdk/tools/ant/build.xml:470: The following error occurred while executing this line:
/pp/src/shared_js/cocos/3.7/frameworks/cocos2d-x/plugin/protocols/proj
我使用cocos2d框架创建了一个移动游戏。问题是,当我试图编译ios平台时,我得到了这个错误。
In file included from /Users/MNurdin/Documents/Game/WTP/frameworks/js-bindings/bindings/manual/chipmunk/js_bindings_chipmunk_manual.cpp:26:
In file included from /Users/MNurdin/Documents/Game/WTP/frameworks/js-bindings/bindings/proj.ios_mac/../../coco
在cocos2d-x3.0 Android游戏中显示+关闭Mopub的广告后,logcat显示以下错误:
E/libEGL (13772): call to OpenGL ES API with no current context (logged once per thread)
W/Adreno-ES20(13772): <core_glBufferSubData:1238>: GL_INVALID_VALUE
D/cocos2d-x debug info(13772): OpenGL error 0x0501 in snip/../cocos2d/cocos/2d/CCT
在cocos2d中使用哪个EventDispatcher?Node::EventDispatcher或Director::EventDispatcher?在参考了控制器类和节点类Director Class Reference Cocos2d-x Node Class Reference Cocos2d-x的官方文档后,我有点困惑,使用 Director::getInstance()->getEventDispatcher() // consider this is used inside a class which is derived from Node class 或 this-
在创建初始的cocos2d Lua项目之后,但是得到以下错误。
错误信息
Android NDK: /Users/beck/Documents/Cocos2d-x/Hello_CocosLua/frameworks/runtime-src/proj.android-studio/app/jni/Android.mk: Cannot find module with tag 'scripting/lua-bindings/proj.android' in import path
Android NDK: Are you sure your NDK_MODULE_PATH
我使用cocos2d-x 2.2.6编写游戏应用程序。在购买Google payment时,该应用程序遵循这些步骤。
1.Open a Google payment dialog.
2.A "Payment Succeed" from Google will show out if the purchase is successful. Then the client receive the purchase information and send it to our server to verify.
3.Show some dialog at client about t