开发者

How to save a score/highscore (int) in a surfaceview class?

Im trying to save a hig开发者_高级运维hscore, in my game. My class extends SurfaceView and implements SurfaceHolder.Callback. So the scoring system works perfect but I really want to make a highscore system (you know first see if score is your highest, if it is set it as highscore).


Take a look at http://developer.android.com/guide/topics/data/data-storage.html#pref

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜