Global Leaderboard/Highscore System

We are currently trying to implement a global high score system. There are a number of services and web applications availiable for this purpose, though we are unsure of how to implement them within the structure of the Corona SDK. Our app is a very simple game and we aren’t looking for that much extra functionality, just a global ranking of scores. Any suggestions? [import]uid: 7895 topic_id: 1707 reply_id: 301707[/import]

Corona allows you to easily incorporate OpenFeint into your game, which allows you to set up an online global leaderboard to allow your players to see where they rank among the world, or they can click on the ‘Friends’ tab and see where they rank among just their friends. It is very useful, and extremely easy to implement in Corona (just have a look at the OpenFeint example that comes with Game Edition).

You can even have multiple leaderboards for each game. So for example, if you have a classic game mode, a survival game mode, and whatever else, you can have a high score board (leadboard) for each one.

OpenFeint has also built up quite a bit of credibility among iPhone gamers, so featuring it can only benefit your titles. [import]uid: 7849 topic_id: 1707 reply_id: 5014[/import]

Does Open Feint allow other types of scoring besides high score tables? For example “Joe beat Bob 52 to 24 in Pro Mode” [import]uid: 295 topic_id: 1707 reply_id: 5045[/import]

http://openfeint.com/about

From OF about page:

Play Games With Your Friends
What fun is beating your own high score, when you can beat your best friend’s? Playing games is more fun when there’s something on the line. So whether you’re challenging a friend’s best time or trying to get the highest score on the global leaderboard, OpenFeint helps you compete and rewards you for succeeding.

Carlos [import]uid: 24 topic_id: 1707 reply_id: 5046[/import]

Carlos,
Does Corona support the OpenFeint “Challenge” feature yet? [import]uid: 8194 topic_id: 1707 reply_id: 5434[/import]

@dknell: I can go ahead and answer that one… OpenFeint functionality is pretty basic right now, just leaderboards and achievements. It’s the basics so it works in many cases (such as mine), but no challenges just yet. [import]uid: 7849 topic_id: 1707 reply_id: 5733[/import]

I’ve added OpenFeint into a game I’m working on but I’m not seeing how the actual game score gets communicated with OpenFeint’s servers.
[import]uid: 1560 topic_id: 1707 reply_id: 6674[/import]

Whenever you want to save a score (such as at ‘Game Over’ or at the end of a round), just use:

openfeint.setHighScore ( leaderboardId, score )

That will send the score to OpenFeint (depending on the arguments you put into that function), and if the score is higher, it will set it as your new high score in OpenFeint. Simple as that! [import]uid: 7849 topic_id: 1707 reply_id: 6675[/import]

Whenever you want to save a score (such as at ‘Game Over’ or at the end of a round), just use:

openfeint.setHighScore ( leaderboardId, score )

That will send the score to OpenFeint (depending on the arguments you put into that function), and if the score is higher, it will set it as your new high score in OpenFeint. Simple as that! [import]uid: 7849 topic_id: 1707 reply_id: 6676[/import]

Ah, I know what you’re doing wrong then.

You set leaderboardId = your OF Client Application ID.

Your OF Client Application ID is different from your leaderboard ID. You need to log into http://www.openfeint.com/developers and go into the Leaderboards section (on the right), create a new Leaderboard, and THAT particular leaderboard will have it’s own ID. Set your leaderboardId argument to THAT ID, not your OF Application ID.

Hope that helps! [import]uid: 7849 topic_id: 1707 reply_id: 6692[/import]

never mind, got it working, thanks :slight_smile: [import]uid: 1560 topic_id: 1707 reply_id: 6690[/import]

Donaught,

Please share what was wrong and what the fix was.

Carlos [import]uid: 24 topic_id: 1707 reply_id: 6695[/import]

It was both that the Client ID is different from the leaderboard ID (as suggested above) and that the global error was the result of my using the function name setHighScores() rather than safeopenfeint.setHighScores().

Does anyone happen to know whether the Open Feint user name can be accessed? It would be nice to be able to display that locally rather than on OF only. [import]uid: 1560 topic_id: 1707 reply_id: 6734[/import]

You might also find this useful, if you want a more “custom” solution than what the included OpenFeint provides:

–> http://developer.anscamobile.com/forum/2010/10/06/tutorial-facebook-friends-leaderboard

It explains how to create a friends leaderboard, but you can also use it to create a global leaderboard as well.

Hope that helps! [import]uid: 7849 topic_id: 1707 reply_id: 7209[/import]