Preventing “Time Change” Cheating in Game [duplicate]

一世执手 提交于 2019-12-05 22:06:32

问题


Possible Duplicate:
Is there a clock in iOS that can be used that cannot be changed by the user

I know in many iOS games that have tasks that take time (i.e. "10 hours until animal done breeding"), one can go into "Settings" and change the time to speed up the completion of the task. In the game I'm developing, I don't want users to do this, so I'm trying to implement a system to prevent this type of cheating. I've put a lot of thought into this, but can't come up with a solution. Basically, my question is how do I keep track of time without relying on the system clock (which can easily be manipulated) for the purpose of preventing users from cheating?


回答1:


transforming my comment into an answer.

Instead of relying on a user or device, rely on an external source for providing unbiased time. A time server, your server, etc. If you don't trust....




回答2:


Instead of "X hours of real-world time", would "Y minutes of in-app time" work for you? You can pause/continue a timer when your app suspends/resumes.



来源:https://stackoverflow.com/questions/12119845/preventing-time-change-cheating-in-game

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!