在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):cpinan/Cocos2dX_GooglePlayGamesServices开源软件地址(OpenSource Url):https://github.com/cpinan/Cocos2dX_GooglePlayGamesServices开源编程语言(OpenSource Language):C++ 60.7%开源软件介绍(OpenSource Introduction):Cocos2dx Google Play Game ServicesMit License - http://opensource.org/ ================================ V.1.0.0
================================ v.1.0.1 Bugs fixed by vivekporwal - https://github.com/vivekporwal
Version for Cocos2d-x v3.0 by howlryu - https://github.com/howlryu
================================ V.1.0.2
================================ v.1.0.3
================================ v.1.0.4
================================ v.1.0.5
================================ v.1.0.6
Special thanks to:
Thanks for your collaboration to fix this issues with the merge. ================================ Don't forget add google-play-services_lib library. The version used for this template is: 5089000 Android Support with cocos2d-x for Google Play Games Services. This is the first version for the Cocos2d-x Template to use Google Play Games Services with Android. Package created: com.carlospinan.utils
This sources in the future will support Google Play Games Services for IOS and Ouya support (Just android) I will add Facebook SDK, Twitter SDK and some support for IAB (In App Billing) but maybe I will work with the Paypal SDK. Important C++ Clases: JNIHelpers: Allows communication from C++ to Java. NativeUtils: Have some methods to communicate with Google Play Games Services. Currently just work Achievements and Leaderboards. Android notes: Modify the file build_native.sh and change the NDK_ROOT for your NDK PATH and find COCOS2DX_ROOT and change for your COCOS2DX PATH After this changes put in your terminal (or Cygwin): ./build_native.sh in the proj.android directory. Note: I recommend use first: "./build_native.sh clean" without quotes to clean the previous obj If you want to implement this use: NativeUtils.h in your C++ class and with your Game Logic call the methods. In this version the current methods are:
In the next version I will add the multiplayer support and I'm working on the Ouya integration and IOS support for Google Play Game Services. ======================================================================================== IOS Side explanation V 1.0.2: You must include "NativeUtils.h" and work with that methods. If you want to change the notification achievement bar position you should modify the "AppController.mm" and change the line:
The
Try to authenticate if the user is not signed in and run in background. Play with the methods and modify the code if you need. ======================================================================================== AdMob interstitial integration V 1.0.4: Just call to preloadIntestitialAd() before showing the ad. Then call to showIntestitialAd() to show an ad. Notice these methods require to be runned on main UI Thread. To avoid reconnect to Google Game Play Services on each intestitial shown I commented BaseGameActivity.onStop() method.If you have some problem just contact me to: |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论