开发者

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

开发者 https://www.devze.com 2023-01-29 04:18 出处:网络
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

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

精彩评论

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