cocos2d-x

iOS App rejected non public api (SSL related) on cocos2d-x and libCurl [closed]

你。 提交于 2019-12-23 06:20:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I just submitted for review and app built on top of cocos2d-x (C++) and libcurl. I m using libcurl with SSL support in order to download profile pictures from Facebook When I validate my app from organiser or trying to distribute I get the following error: Your app contains non public API usage . please reviex

C++: call (derived's) member function on base pointer of a different derived class's object

◇◆丶佛笑我妖孽 提交于 2019-12-23 05:12:44
问题 Is it "safe" (and/or portable) to call a member function (pointer) on the pointer of a base class, but the object pointed to is an instance different derived class. The member function does not access any member variables or functions of the derived class. /* Shortened example of what happens in the client code and library */ class Base { /* ... */ } class DerivedA : public Base { /* ... */ public: void doSomethingA(float dt); } void DerivedA::doSomethingA(float dt) { /* Does not access

Cocos2d-x C++ build error on Eclipse ADT

人走茶凉 提交于 2019-12-23 04:43:59
问题 I'm newbie of Cocos2d-x C++. I tried to run then debug the sample code HelloCpp of cocos2d-x 2.2.1 on my Mac. The following is what I did: 1 . Set environment variables: NDK_TOOLCHAIN_VERSION, NDK_ROOT, ANDROID_SDK_ROOT, COCOS2DX_ROOT, ... I can run build_native.sh from Terminal without errors. 2 . Add C++ classes to project HelloCpp is a C++ project already so I ignored converting this project to C/C++ project in Eclipse. C++ classes added to project successfully. 3 . Change the project

Marmalade: better using Cocos2d-x v.2 or Cocos2d-x v.1?

我与影子孤独终老i 提交于 2019-12-23 02:52:22
问题 we are developing a game using Marmalade SDK and Cocos2d-x version 1.0.1-x-0.13.0 beta (2012-03-29). At the time we started working on the game, this version of Cocos2d-x was the only one to include marmalade platform support, so it was a forced choice, but currently it seems that also cocos2d-2.1beta3-x-2.1.0 has added the support for marmalade. Now we are trying to evaluate if it is worth to replace in our project the old version of cocos2d-x with the newer one and I'd appreciate the point

Setting up Cygwin + Android NDK + cocos2Dx to work with Eclipse

爱⌒轻易说出口 提交于 2019-12-22 10:27:31
问题 I'm following a tutorial from this website: Monetizing Game Apps by Todd Perkins Access to all the files are not required for the questions I'm asking. I have done research on how to solve this on stack overflow and discussed it below I have followed the tutorial and it has asked me to: Install Cygwin Download Cocos2dx-2.0.1(I know this is old, but I don't want to deal with deprecating problems until I'm more confident with the environment) Run create-android-project.bat(works fine). Open

Linking errors when adding AdMob to IOS cocos2d-x 3.2

你说的曾经没有我的故事 提交于 2019-12-22 06:00:48
问题 i trying to add AdMob to cocos2d-x 3.2 simple game using Xcode 5.1 iOS 7.1 i following the tutorials in https://developers.google.com/mobile-ads-sdk/docs/#ios and http://plaincode.blogspot.co.il/2014/02/example-of-admob-integration-in-cocos2d.html and after adding the -ObjC flag in the "Other Linker Flags" I'm getting linking errors: Undefined symbols for architecture armv7s: "_GCControllerDidDisconnectNotification", referenced from: -[GCControllerConnectionEventHandler observerConnection

cocos2d-x v 2.0.4 FATAL EXCEPTION GLThread when run on Android emulator

为君一笑 提交于 2019-12-22 05:33:14
问题 I create cocos2d-x app I'm using cocos2d-2.0-x-2.0.4 I've got error when trying to run app from Eclipse on Android emulator. 12-04 08:03:13.792: E/AndroidRuntime(1081): FATAL EXCEPTION: GLThread 105 12-04 08:03:13.792: E/AndroidRuntime(1081): java.lang.IllegalArgumentException: No config chosen 12-04 08:03:13.792: E/AndroidRuntime(1081): at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:874) 12-04 08:03:13.792: E/AndroidRuntime(1081): at android.opengl

Call to C++ JNI NewStringUTF crashes android app when using many different kinds of emoji and languages (beyond ascii, but still valid modified utf-8)

我的未来我决定 提交于 2019-12-21 21:50:22
问题 I am trying to solve a Cocos2d-x Keyboard input crash on Android 5.x when I create CCImage from the text with many emoji found on the keyboard (some work though, but most don't.) On Android 4.x several of the devices just display mangled text/extra characters. The source of the crash is the JNI's NewStringUTF() call. It simply does not support all of the 2, 3 and 4 byte utf-8 characters in Android 5/Lollipop. This crash happens on cocos2d-x v2.2.6 (and confirmed on 3.x) using NDK 10e with

Has anyone run their game on Higher Resolution in Cocos2d-android?

我们两清 提交于 2019-12-21 21:08:04
问题 CCScene doesn't show anything on higher resolution ? I am working on a project in which I'm using the cocos2d_android.jar and on the 4.3 version the screen goes blank and music/ccTouches/others things working fine. Even after I change the jar file with the API level 18(4.3 version), Add into my project and there is no error in the import time and uses their classes but in the RunTimeError occurred like : 09-14 07:49:49.890: E/AndroidRuntime(1282): FATAL EXCEPTION: GLThread 102 09-14 07:49:49

[cocos2dx android]Rendering CCSprite using raw data from Bitmap

自作多情 提交于 2019-12-21 20:56:26
问题 I am trying to fetch an image from a URL into a Bitmap and then using the raw data from the Bitmap am trying to create a CCSprite. The issue here is that the image is corrupted when I display the sprite. I created a standalone android only application(no cocos2dx) and used the same code to fetch and display the Bitmap and its displayed correctly. Any reason why the image is not being properly rendered in cocos2dx? My code to fetch the image from the URL is: String urlString = "http://www