tags:

views:

298

answers:

3

Can anybody advise solution for implementing online high scores table for iPhone game ? I mean simple engine to publish player result by http query and view global high scores table. I'm weak in PHP so trying to find existing solution first. Thanks.

+2  A: 

Here's a tutorial which has a downloadable "high Score" PHP script. http://www.flashkit.com/tutorials/Games/High-sco-Glen_Rho-657/index.php

You should know that there's a large number of people who will attempt to Game your high score table. i.e. They will try and cheat it by monitoring how you do the post, and doing the same with a new high score.

Make sure that the high score is posted with a hash key (This needs to be salted, and it needs to hash the user name and the score posted). The hash key can then be used to check the posted value was posted from your game.

BTW - There are "High Score Hosting" providers out there. That's craziness as it should be relatively simple to provide your own.

seanyboy
> BTW - There are "High Score Hosting" providers out there. That's craziness as it should be relatively simple to provide your own.Thanks for link and infromation. I found several provider today - I'll try some of them.Sorry for boring question.
Igro
+1  A: 

If you use the Cocoas 2D framework, I think they support some sort of global high score mechanism.

Kendall Helmstetter Gelner
+1  A: 

Hey igro, you may want to check our iGetScores which is an online high scores system designed specially for iPhone games. It's free and open source. The server part is PHP+MySQL and uses OAuth for authentication. The iPhone client samples are also provided.

Check the google code website: http://code.google.com/p/igetscores/

and feel free to contact us there if you have difficulties with implementation

Taras