I want to build a game that has realTimeMultiplayer and support for saved game.
Both functionalities come from the Play Services API provided by android.
The players would invite their friends, play in real-Time, then whenever one player quits, the game is saved and other players are disconnected.
Then when the friends want to play together again, they can load up the game, be placed in the waiting room until all their friends are connected and then resume the game where it was.
Is this a possibility in Android through the Google Play API? How would I go about going from the saved game to the waiting room with the original players?
Any help is appreciated!
Thanks :)
Check the Real-time Multiplayer from GPGS. I think it will give you insight on your questions:
-Room initialization
-Room configuration
-Participants
-Auto-matching
-Connected set
-In-game networking
-Invitations
You can also use Google's Firebase for Real-time Events on App Engine.
There's a real-time multiplayer game Tic Tac Toe game sample in this Github repo.
Related
I am a complete beginner in android development and for self-learning purposes thinking of creating a visualisation tool where different progress graphs of user's high score vs time or latest scores among all games will be displayed. The game in observation can be any game selected by user from the list of all games played by him till date. I just want to know is this possible to do in google play games API? If yes how can I do so? i.e. displaying high score or latest score from any game played by him till date?
Using google play games API this would not be possible to get data of other games played by user.
Hi i would like to know if its possible to access via API on google play or Game Centre your friends list to see they're stats and achievements on a game you play together.
I would like to build a app that compares (like challenges) progress on a game played by two friends.
Thanks in advance.
You may want to check Play Services for Android, especially social leaderboards, which is made up of people in the user's circle. You may also want to check out Adding Player Stats to Your Android Game which contains the player's in-game activity, but I think this deals with all players in a game instead of just the friend list.
I want to create a small application in android that just lists upcoming games with their release dates. Ideally this will provide a thumbnail of sorts that when clicked will take the user to that games in android. If application is installed then linked otherwise connect with store for install that game. I want to use thegamesdb.net, I have to sample code.
I am getting game list and details but I want to play that games which is in games list.
please help me How can I achieved it in Android.
reference link is http://thegamesdb.net/
Thanks in advance
As you all know,for Multiplayer game apps, iOS provides Game Center and Google's Game Center is under development however Private game centers like GREE and MOBGAGE can do this job well.
Interestingly, games like "Words with friends" and "Fun Run" wants you to just logs in with facebook id and then the game manages online match-making, multiplayer games etc.
Please hint, if facebook can be used as a Universal Game Center as every OS have its accessibility.
Thanks.
Google has released Play Game Services. It works on iOS, Android and Web, it also has multiplayer support and stores Achievements and Leaderboards for your game.
As far as I know, Facebook can be used as an authorization platform, but you still need your own server/backend to keep track of player data, achievements, leaderboards, etc.
I'm programming a simple game to learn Google Play Game Service. After playing the game, the user will get a score. I want to get information about old high scores (to compare with recent score), or whether I get new high rank in my circle or not, or what achievement I unlocked. So, please help me how to get this information.
You can download achievement information as in this answer.
I believe that a similar way can be used to obtain leaderboard data with getGamesClient().loadLeaderboardMetadata()
AFAIK Google Play Game Services is not intended to work like this. The basic idea is that you submit achievements and scores to GPGS and it then does the rest. The user gets the information he/she is interested in by looking at the relevant achievement/leaderboard. If you really need to track and display all this information in your app then maybe you should implement your own system instead of using GPGS?
One important design consideration with GPGS is to avoid unnecessary API calls from your app (presumably because this costs Google money). If you were to query leaderboards and achievements in your app (say every second or minute) then the number of API calls each time your game was played could easily increase from a handful to hundreds or even thousands per play.
To get a better understanding of how Google would like you to use Google Play Game Services I recommend that you read the documentation and watch this recent video made by the GPGS team
:
Top 7 Google Play game services setup mistakes — Google Developers
https://developers.google.com/live/shows/5936979195723776