Implementing unlockable items on Android

Posted by coder_For_Life22 on Game Development See other posts from Game Development or by coder_For_Life22
Published on 2012-01-12T00:02:03Z Indexed on 2012/03/21 23:41 UTC
Read the original article Hit count: 167

Filed under:

I know this would be a beginners question (some of you might think) but I would like to know different approaches for this.

I have a game with lets say 20 unlockable items, at the main menu I have a button where the user can go to an activity and view the unlockable items. So I would like for it to have a "Locked image" and under it a text telling you what the item is and maybe how to unlock it.

What is the best way of going about this?

And then when the item is unlocked during the game, maybe put a variable in the shared preference and check at the beginning of the activity with the unlockabled items.

Let me know what you guys think. Thanks.

© Game Development or respective owner

Related posts about android