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

I calculates the score in game project using android cocos2d, in that game after finishing the first level it goes to the next level, so i want to store that first level score and also add next level scores. how can i store that scores in android-cocos2d.

share|improve this question
I'm not sure about android version, but in cocos2d-x there is a method named CCFileUtils::getWriteablePath(). using that method I can create and save data into a file. – Ali.S Dec 7 '11 at 19:58
can i use shared preferences here or any other way is there for storing that game score – selva Dec 9 '11 at 5:17
As I said I didn't tried anything with android, so I don't even know what are you talking about! you can also check [OpenFeint]( it has a good framework to save/share scores written in java. – Ali.S Dec 9 '11 at 9:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.