google-play-games

Web-based Multiplayer Board/Card game toolkit

不打扰是莪最后的温柔 提交于 2019-12-04 21:24:40
As a personal hobby, I would like to program a web-based card game with a few tokens and write an AI for it. I do not want to spend time and effort on standard elements such as maintaining a list of games and coordinating who's playing who, or even writing a login system (ideally I'd like to use Google accounts). My choice of programming language is flexible, but would prefer something I could run on Google app engine. I know Google Play Games provides some of the APIs but I was hoping for something more comprehensive. Even better if it works with Google Play Games. Can you recommend toolkits

Google Play Sign in for Unity

…衆ロ難τιáo~ 提交于 2019-12-04 21:21:58
I am trying to integrate Google play Services so that i can have achievements and leader boards in my game.I have tried the following code - public Text myText; void Awake() { PlayGamesPlatform.Activate(); } public void SignIN() { Social.localUser.Authenticate((bool Success) => { if (Success) { myText.text = "Yayy!!"; } else { myText.text = "Not AGAIN!!"; } }); } public void SignOUT() { PlayGamesPlatform.Instance.SignOut(); if (Social.localUser.authenticated == false) { myText.text = "SIGNED OUT!!"; } } where SignIN() and SignOUT() are called in buttons Sign IN and Sign OUT but i am unable to

How to keep user in the game room even if activity loses focus

余生颓废 提交于 2019-12-04 21:04:29
By default when the user closes screen player leaves the room and when it opens the screen back user logs back in. I am extending BaseGameActivity and I start quick game on onSignInSucceeded. I want to keep the user in game even if the screen is closed, received a call etc. 1 . How can I achieve the desired behaviour? 2 . Am I misconfiguring something? 3 . Is this because of the way GameHelper is written? should I reimplement it? Currently, you cannot keep the game running if the Activity loses focus. This restriction is deep down in the API, not in GameHelper. We may or may not change in the

How to get the Profile image of Participant in RealTimeMultiplayer using Google Play Game Services

拥有回忆 提交于 2019-12-04 19:46:22
I am building a game using google play game services on RealTimeMultiplayer concept, my questions is how to get access the all participants profile image to display. i am new to the google play game services, not found a solutions or any guidance on API. please guide me, can we access and how to access? Using the ImageManager class to load the ImagerUri is how I tackle it. Below, I loop through each Participant in the currentRoom, and request their IconImageUri to be loaded by an ImageManager instance. This can directly be used to inflate a view, but as I am using LibGDX, I save it as png for

Google Play Game Services - not signed in on next activity

半腔热情 提交于 2019-12-04 18:46:24
In my application, i have in game helper(i want log in on button click): // Whether to automatically try to sign in on onStart(). We only set this // to true when the sign-in process fails or the user explicitly signs out. // We set it back to false when the user initiates the sign in process. boolean mConnectOnStart = false; In my MainActivity (extends BaseGameActivity), after login button click i call: beginUserInitiatedSignIn(); Of course now isSignedIn() returns true. But when I go to next Activity (aslo extends BaseGameActivity): isSignedIn() return false. I can of course call

Google Play Game Services get achievements list

好久不见. 提交于 2019-12-04 15:49:20
I'm integrating Google Play Game Services in my game. Now I want to retrieve a list of achievements without starting the achievements intent . I want the list behind that intent so that I can populate my own UI elements with this information. I'm not using the old GooglePlayServicesClient, I'm using the GoogleApiClient! Thanks for your help ;) free3dom The code to retrieve a list of achievements can be found in this answer . Below is the code snippet - see the linked answer for a full description: public void loadAchievements() { boolean fullLoad = false; // set to 'true' to reload all

libGDX - Google Play Game Services in Android Studio

筅森魡賤 提交于 2019-12-04 15:24:43
After migrating to Android Studio from Eclipse, I was struggling at best with it. Problem was that most guides and tutorials you could find are for Eclipse , but if you can find one for Android Studio, it is missing most important parts - implementing libraries or 3rd party code. After week of problems and errors here is a guide raco Requirements: Google play services and Google Repostory (under Extras in SDK manager), BaseGameUtils Firstly we need to add BaseGameUtils as Module: then select Import Gradle Project and chose BaseGameUtil folder (do not copy BaseGameUtils in project before that

App not correctly configured to use Google Play services

↘锁芯ラ 提交于 2019-12-04 13:52:12
I've been stuck on this for hours and nothing seems to be working. I have a simple game which I'm trying to integrate with Google Play services. I'm interested in adding a leaderboard and a few achievements. This is what I've done: MainActivity extends BaseGameActivity, and I've imported the BaseGameUtils project and the google-play-services_lib projects. I've added them both as Library projects of the game. I've created two client IDs in Google Developers console for both my product and my debug keys. I added my email as a tester in the Google Play Developer console, in the Game Services

How to make Android Multiplayer Games using Facebook friends? (Google Play Game Services uses G+ only)

与世无争的帅哥 提交于 2019-12-04 11:46:27
At the risk of this question being marked 'research' or 'too broad', I am placing this question here with the research I have done so far (to count as background work), especially since I have been researching this for a while but have not found a good turnkey solution. thank you for your inputs! I want to make Turn Based Multiplayer Game. I found Google Play Game Services but that only works with Google+ Login: https://developers.google.com/games/services/android/turnbasedMultiplayer How do I do the same with Facebook login? Can Google Play Game Services be used with Facebook friends? In my

libGDX Google Play Game Services - Android

China☆狼群 提交于 2019-12-04 08:24:28
I am trying to implement Google play Game Services into libGDX project. In my android project, the MainActivity looks like this: public class MainActivity extends AndroidApplication implements GameHelper.GameHelperListener, ActionResolver { GameHelper gameHelper; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); gameHelper = new GameHelper(this, GameHelper.CLIENT_ALL); gameHelper.enableDebugLog(true); getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE);