保存高分 [英] saving a highscore

查看:60
本文介绍了保存高分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道如何为Windows Phone 8应用程序保存和加载高分。我怎么可能这样做,我也需要它来节省总金额。请帮助并谢谢!!!

I don't know how to save and load a highscore for a windows phone 8 app. How might I do this, also I need it to save the total amount of money to. Please help and thank you!!!

推荐答案

如果要将其本地保存到手机中,可以将数据转储到隔离存储设置中

If you want to save this locally to the phone you can dump the data in an isolated storage Setting

                            IsolatedStorageSettings.ApplicationSettings["Score"] =Score;
                            IsolatedStorageSettings.ApplicationSettings.Save();

并将其检索为

if (IsolatedStorageSettings.ApplicationSettings.Contains("Score"))
            {
                Score= IsolatedStorageSettings.ApplicationSettings["Score"].ToString();
            }


这篇关于保存高分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆