question

mm avatar image
mm asked

Cocos2d-x compatibility

Hi, am I able to use the GameCircle 2.x API within a cocos2d-x project? I am just a little confused at the documentation I've found. This page, https://developer.amazon.com/sdk/gamecircle/documentation/cocos1x-overview.html, (and this one https://developer.amazon.com/sdk/gamecircle/documentation/cocos1x-setup.html) mention the older 1.x API and states "The Cocos2d-x extension is not compatible with or supported by GameCircle API versions higher than 1.x (the current GameCircle API is version 2.1), and provides no support for generic Android devices or iOS devices." I am not familiar with the old plugin, can I simply use the new 2.x GameCircle SDK in a new cocos2d-x project? Thanks for any clarification
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Venkat@Amazon avatar image
Venkat@Amazon answered
Hi, Thank you for your post. GameCircle 2.x is compatible with Cocos2dx using the C++ to Java JNI interface for Android, as well as a C Wrapper built into the iOS SDK. For Android, follow the JNI documentation here: https://developer.amazon.com/sdk/gamecircle/documentation/jni-api.html adjusting as needed for a Cocos2dx application. The iOS C Wrapper documentation is not quite available yet, but we are working on it, as well as a Cocos2dx sample application to help guide Cocos2dx developers through the GameCircle setup process. If you want to start setting up GameCircle for iOS right now, you can try working through the generic iOS SDK setup as outlined on this page https://developer.amazon.com/sdk/gamecircle.html, making any necessary adjustments to use the C Wrapper instead of the Objective C SDK. Once setup, the iOS C Wrapper uses the exact same header files as the Android JNI implementation, and you can share your C++ implementation game code across both platforms.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

mm avatar image
mm answered
Hi, thanks for the reply, I will try it out on Android
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

mm avatar image
mm answered
> Hi, > > Thank you for your post. GameCircle 2.x is compatible > with Cocos2dx using the C++ to Java JNI interface for > Android, as well as a C Wrapper built into the iOS > SDK. For Android, follow the JNI documentation here: > https://developer.amazon.com/sdk/gamecircle/documentat > ion/jni-api.html adjusting as needed for a Cocos2dx > application. The iOS C Wrapper documentation is not > quite available yet, but we are working on it, as > well as a Cocos2dx sample application to help guide > Cocos2dx developers through the GameCircle setup > process. If you want to start setting up GameCircle > for iOS right now, you can try working through the > generic iOS SDK setup as outlined on this page > https://developer.amazon.com/sdk/gamecircle.html, > making any necessary adjustments to use the C Wrapper > instead of the Objective C SDK. Once setup, the iOS C > Wrapper uses the exact same header files as the > Android JNI implementation, and you can share your > C++ implementation game code across both platforms. Would the sample Cocos2dx application be available somewhere? Is there a recommended way to integrate the GameCircle api with the Cocos2dx nativeactivity implementation?
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Sorry. We are not able to provide any sample code for Cocos2d-x. It would be available soon with the sdk. Please stay tuned. Thanks.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.