How to match/pair random users in mobile app games like DrawSomething and QuizUp
is there any sample resuable code available that can be integrated with respect to Gamecenter/Google Play Game Services.
It's a pretty straight-forward process to randomly match up players. The best place to start is the concept documentation: https://developers.google.com/games/services/common/concepts/turnbasedMultiplayer
then check out the samples on GitHub, especially the SkeletonTBMP.
https://github.com/playgameservices/android-basic-samples
Related
I'm in the research (what's doable) phase of a possible app development project.
My potential app will be a trip app that lists all stores and drug stores. Is is possible for my app (regardless of platform) to integrate Google Maps (or some other maps database) to provide:
turn-by-turn guided directions?
interactive list of stores and drug stores between start and final destination so that I can choose my preferred stops?
calculate time/distance to each chosen stop?
ability to add other parameters to each stop?
I found another app that functions similar to my app idea but I'm not sure if the GPS navigation functionality and limitless list of places has to be built from scratch or can integrate with an existing tool like Google Maps API and if there's a charge if I'm charging for my app.
You can make requests like that. It might be best to build for the platform. Ie. If it's iOS use Apple Maps for ease of use, and google for Android. However, if you're going to build cross platform go with google. Might have it issue separate queries for different data.
No they will be use normal google map API most of cases but if JavaScript call is increase they will buy premium plane because google provide 1000 JavaScript call in a day you will increase limit at 100000 by simply register you credit card which was well inaf for new comer also for mid range user and little bit heavy user.but in premium plan google give more facilities to there customer. you can get more info at https://developers.google.com/maps/premium/
I am implementing multiplayer android game. I am considering using some API to handle multiplayer. I decided to AppWarp and actually it works but I am afraid that game won't earn fo itself as this is paid service.
I've read about google multiplayer but I cannot find clear answer for my question. Is it P2P only or it's possible to configure it with server usage?
I am afraid of using P2P because of huge lags and that it can make the game unpleasant to play.
Bonus question:
Is it possible to set up leaderboard which i can treat as ranking (adding and subtracting points?). Or maybe some google cloud storage with some raw data which I would be able to update through some REST. I know that it exists but what are your experience with that? Can i treat it as some simple database where I would be able to store at least username and number of points which I would be able to add or subtract after winning or losing a match?
Maybe you know other services which you have experience with?
As far as I understand from Real-time Multiplayer, server usage plays a very important function in the design and implementation. One of these functions is:
Stores participant and room state information on the Google Play games services servers during the lifecycle of the real-time multiplayer game.
Server usage was further discussed in the given concepts related to the typical lifecycle of a real-time multiplayer game given in Real-time multiplayer game basics.
Leaderboards, on the other hand, is possible to set it up and treat it as ranking among your players. As mentioned in the documentation:
Leaderboards can be a fun way to drive competition among your players, both for your most hardcore fans (who will be fighting for the top spot in a public leaderboard) and for your more casual players (who will be interested in comparing their progress to their friends').
For more information, it will really be helpful to go through the given documentations.
In addition to that, I think the given technical and design solution given in this Stack post - Mobile Multiplayer games and coping with high latency will also help you.
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 have released a game that uses Google Game Services on Google Play. Everything works, but when I look on my game in Google Play it doesn't show that it's using Game Services. Some other games do (like Riptide GP for instance). What is controlling this?
Implementing the Google Play Game Services features is not sufficient, your users have to use the service for you to get the badges.
Let me quote from this video from Google I/O 2013: Practical Android Games Development
http://youtu.be/ZbQWf7C5ymU?t=23m39s
"As you get more users you will get badges. [...] However, they are not just given out because you put them in the config, and we don't snoop your APK to see if you are making API calls from there. We verify how much the feature is being used and if you meet certain threshold we give you a badge. So you need to actually integrate it, it is not a token thing that you can put there to get more eyeballs in the store."
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