sprite Kit save highest score

前端 未结 2 1558
你的背包
你的背包 2021-01-15 21:56

I build a game using Sprite Kit(with swift xCode 6 beta 4) and I need to keep the highest score that the player reached(so just an one Int). I know there is a way to do it u

2条回答
  •  情深已故
    2021-01-15 22:16

    Use NSCoding but can also use NSUserDefaults (but it can be easily edited by the user so not reccommended, mainly used for storing user preferences etc but it will work) Hope this helps

提交回复
热议问题