Rank different countries in Game Center Leaderboard? - ios

I was wondering if it would be possible to rank things other than individual player in Game Center, such as a country. It would be set up so that when a player gets a score, it adds that score to the player's country score and that gets sent to Game Center. So, would this be feasible?

The Game Center views do not offer filtering other than what you see in the standard interface (time scope and all players vs. all friends). So, to get this behavior, you would need to build your own custom Game Center leaderboard interface, manually downloading scores with GKLeaderboard, and storing and retrieving country information in the hidden context parameter of scores.
However... this would be hugely impractical, because you would have to download a very large number of scores to ensure that you would capture even most of the countries where players have submitted scores. As such, you really should look into having your own leaderboard server which tracks the data you're interested in, and can efficiently return it organized in the way of your choosing.

Related

Game Center leaderboards confusion

I was wondering if I create a game center leader boards if I could reset all the game scores posted on it? Not remove data during test but after launch.
The reason for me asking this is I was thinking about creating a game where whoever has the highest score by the end of the week gets a bonus of some sort based on my game and then a new competition starts and all the data resets again so new scores can be uploaded.
That's not what they were designed for, no. While it may technically be possible using score deletion through the iTunes Connect interface, I would recommend against it and try to come up with either your own solution or a different third-party service.

Using Game Center to save/share game data/state

After reading the developer docs and hours of searching various forums I can't seem to find information on how this is done.
Basically I have a bunch of data that I save locally that makes up the current state of the player's game. I've seen other games such as Tiny Tower, Pocket Planes and Smurf's village actually backs that data up in Game Center.
My goal here is for players to be able to load up data from their friend's games so they can see how things are progressing. For example, in Tiny Tower I can view my friend's tower and send him/her gifts. Similarly in Smurf's Village. I know I can do this with my own server with login/password but if it works via Game Center why complicate things?
Is it a matter of exploiting Game Center's match functionality? Or leaderboards? Or?
Anyway can some one point me in the right direction?
I've gone through this tutorial, and it sounds like it would answer a lot of questions that you have.
What's New With Game Center In iOS6

Persistant data with Game Center?

Is it possible to use Game Center to store persistant data regarding your game? so for example would I be able to store an "experience" value for players linked to a specific game, in their Game Center accounts?
I did something similar to this by using different leaderboards.
But the kind of data is very limited, and you can only increase one player's score.
What do you want to store ?
experience can be stored locally, even permanently with NSUserDefaults

GameCenter - One leaderboard for each level

In a game that contains dozens of levels (more that a hundred), I wish to display/store the highest scores for each level.
I saw in the API documentation that a maximum of 25 leaderboard categories can be created...
Is there any way to achieve this per-level high scores management? With one single leaderboard with a special parameter indicating the level number? Or is there a way to generate automatically all the level leaderboards?
Game Center leaderboard system is obviously not suited for this approach (one leaderboard per level).
I think the idea is to store global scores and have one leaderboard per difficulty level for instance.
I'll probably have to redesign my scoring system to fit the Game Center approach.
Look at the context property of GKScore - which is a 64-bit unsigned integer - that way you may be able to assign different values for the context for different levels and filter that data when you get the scores from leader boards (this will probably require you to use your own UI to display high scores rather than the generic GKLeaderboardViewController) - good luck and let me know how it goes.
You can't create more than 25 leaderboards. But you can use another solutions to do this.

Where to save high scores in an XNA game?

I'm making a simple 2 player game in XNA and started looking into saving the player's high scores.
I want the game to work on the XBox 360 as well as Windows, so I have to use the framework to save the data.
It seems that you save data to a particular user's gamer tag - so my question is, what to do with high scores?
Save the user's own scores in their profile? (So you can only see your own scores if you're the only one signed in)
Try and save other player's scores in all profiles? (Seems like a pain to try and keep this sync'd)
Store scores online
The 360 seems to have a standard method for showing friend's high scores. Can this be accessed from within XNA, or is it only available to published games?
Roll my own. (Seems excessive for such a small personal project.)
the XNA Live API doesn't give you access to leaderboards ... so your real only option is to store the scores locally. If you want users to see each other's scores ... you could use two different stores. The player's store for his own save data ... and then title storage to store scores.
Of course then, if the 360 has more than one storage device, they'll have to select it twice ... but you could only let them choose the device for scores if they go into the high score section.
You may want to read http://www.enchantedage.com/highscores. It uses XNA network sessions to share high scores with other xboxs playing the same game.
Here's one way that has been accomplished that seems extremely simple and easy to implement.
http://xnaessentials.com/tutorials/highscores.aspx

Resources