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 making a 2D game for Android using OpenGL-ES technology. It is a space shooting game where the player shoots enemy ships.

I want to keep a track of score for the amount of enemy ships destroyed and a record of a local highscore. The score should be incremented whenever an enemy is destroyed. I also want a way of displaying both the current score and highscore on the game screen. I am not familiar with databases at all and I will appreciate a clear answer or a link to a good tutorial for my cause. Thanks.

share|improve this question
Like this one? – o0'. Mar 27 '12 at 13:31

Since it is local, your best bet would be to use the built in SQLite that is part of Android. Here is a link that I have used before and it explains how to use it pretty well.

and also

It can get fairly complex if you are new to it but once you get the main code down it will be pretty quick to save and get data

share|improve this answer
Thanks Mungoid, I will give it a try. – Michael Seun Araromi Mar 27 '12 at 17:04

Your Answer


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

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