Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Are there any existing frameworks I can build on? Should I build my own? How can I prevent fake scores from being posted to it?

share|improve this question

closed as off-topic by MAnd, Kromster, Josh Petrie Feb 29 at 18:57

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about "how to get started," "what to learn next," or "which technology to use" are discussion-oriented questions which involve answers that are either based on opinion, or which are all equally valid. Those kinds of questions are outside the scope of this site. Visit our help center for more information." – MAnd, Kromster, Josh Petrie
If this question can be reworded to fit the rules in the help center, please edit the question.

What platforms are you talking about? Does it have to work across platforms? – Dennis Munsie Jul 14 '10 at 19:31
@Dennis specifically using Java and developing for Android. – Bryan Denny Jul 14 '10 at 19:31

ScoreLoop is available for Android platform.

You can use ScoreNinja too. ScoreNinja offers an easy way to implement global scores but requires to view your score in the ScoreNinja application.

Otherwise Cocos iphone provides a global score with CocosLive. You can use or use your own GoogleApp Engine VM. CocosLive is not available on Android platform but the protocol is REST with JSON and can easily be ported.

My current solution is CocosLive for Android and iPhone with my own VM but i will use ScoreLoop in my next game for social network integration.

share|improve this answer

I'm not sure there is one framework that spans multiple platforms but there are platform specific frameworks for sure. Two that come to mind for the iPhone are Scoreloop and OpenFeint.

share|improve this answer
OpenFeint has been announced for Android -- see . – Dennis Munsie Jul 14 '10 at 20:02

Check out OpenFeint : Getting Started With OpenFeint SDK for Android 1.8 Easy to start !

share|improve this answer

Do the following:

(1) User gets a score in the game.

(2) Create the string "Username,score,timestamp" or something similar.

(3) Append a salt (secret string) to this string: "username,score,timestamp,SALTSTRING"

(4) Calculate a hash of this string with your favourite algorithm, (MD5, SHA...).

(5) Post "Username,score,timestamp" together with the hash you computed to your site:,score,timestamp&hash=MYHASH or something similar

(6) On your server, redo the calculation, i.e. create "username,score,timestamp,SALTSTRING" and then compare with the hash the user submitted. If no match, then something has been tampered with.

Note, if the user can obtain the class files, then they can be decompiled, and thus the salt can be seen. However, if the user can decompile your program, there is no way to prevent false high scores: the user may modify the code to make the game easier and use that version. You will have no way to check for that.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.