Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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
1  
Like this one? developer.android.com/guide/topics/data/data-storage.html –  Lohoris Mar 27 '12 at 13:31
add comment

1 Answer

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.

http://www.vogella.de/articles/AndroidSQLite/article.html#overview_sqlite

and also

http://www.androidhive.info/2011/11/android-sqlite-database-tutorial/

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
add comment

Your Answer

 
discard

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.