Closed ramsestom closed 10 years ago
Hi, I guess it would be possible. But I guess this will just add support for iOS (the documentation seems to tell that the C++ API is for Android and iOS only). Also, OpenFL does not support Windows Phone yet. I think it'll be easier to integrate the ObjectiveC Api for iOS and leave the Java part for Android.
I don't see why it would be limited to iOS and Android. As long as you target is cpp and you are able to compile the library, it should work. So I think windows 8 (I said windows phone but was thinking windows 8 ;) ) and blackberry phones could be able to benefit from this library too. Anyway, are you planning to add iOS support to your library in the near future?
Hi, I tell this because it says so in Google's documentation (I've downloaded the SDK and it has two folders: One C++ implementation for Android and one C++ implementation for iOS).
I don't know exactly why, but I guess it's because the C++ target can't provide any UI for login, leaderboards, etc... since there's no generic way to do that in C++ because it platform and framework dependent.
Also, note that both (the java and the C++ sdk of Google Play Games), requires the user to have the "Google Play Games" app installed (since it simply calls that native app when it needs UI components like login, leaderboards, etc).
I don't know if there's any open specification on the google play games protocol. If something like that exists, someone may be able to write everything directly in haXe and implement a generic UI for every platform.
PS: About iOS, I wasn't planning to do so in the sort term since I guess that most iOS users prefers to use GameCenter. But if someone want's to help me on that, I'll integrate and publish it for sure :)
Thanks for the complete answer. Indeed I do not even downloaded the C++ gpg API yet and I naively thought they recoded the whole Google Play Games app in C++ (as it is supposed to be packed with your app so that clients without it already installed could install it) so that it could be compiled for any cpp target. Concerning iOS, I think that many of the developers that develop cross-platform games are interested in using GPG rather than GameCenter on iOS as it allows to have a unique and shared leaderboard between the two platforms for example. In the future, I would probably try to modify your library to make it work for both Android and iOS (as I planned to release my games on both platforms) but for now, I am trying to add Admob support to it (which shouldn't be really difficult as the Admob API is now part of google play services)
Hi, if you want to add AdMob, you can use openfl-admob (a working extension for integrating admob in Android and iOS). It's published on haxelib and documentation is here: https://github.com/fbricker/openfl-admob
PS: I'll be happy to receive your contribution to make GPG extension work on iOS :)
Thanks!
I tried openfl-admob but can't make it work (seems deprecated. And no support from the developers as I posted an issue for help a week ago and sadly no answer). That's the reason I end-up trying to make my own Admob library
Are you sure you've tried openfl-admob and not some other extension? This is not deprecated (I'm the developer, and just publised it 10 days ago). I did not received any issue (in fact there are no issues posted on the project at all).
Oh sorry, did not pay attention to the link. I actually tried another extension called admob-openfl (https://github.com/mkorman9/admob-openfl) and I mixed up these libraries because of the similar names ;) . I will try yours and tell you if I can make it work. Thanks, should save me some time.
HI
Do you think it would be possible to adapt your library to use the C++ google play API (https://developers.google.com/games/services/cpp/GettingStartedNativeClient) rather than the java one? This way, the library could be used on any cpp target (Android, iOS, Windows phone...) rather than being restricted to Android only.