开发者

How to prevent cheaters beating NSDate for iPhone games?

开发者 https://www.devze.com 2023-04-01 03:54 出处:网络
I\'m currently playing around with NSNotification (or local notifications in general terms) for a product management game which relies heavily upon the user\'s NSDate/Time and then use local notificat

I'm currently playing around with NSNotification (or local notifications in general terms) for a product management game which relies heavily upon the user's NSDate/Time and then use local notifications to give an alert for when a product is ready.

However, in my experiments with similar games one can beat this system by simply moving the system clock forward and thus speed up the game.

I've noticed some games have stopped this, but I think thy did it by having an internal clock which syncs with an online clock and never uses the iPhone's clock, but this is just a guess as obviousily such a system doesn't work if you have no internet access.

Anyway, and am hopeful someone who has gone down this road can clarify;

  • Whether local notifications (or push notifications) are mature enough by themselves for games that rely on a users NSDate/Time?

  • How to prevent users/cheaters beating NSNotification/NSDates for games?

Is there an article or framework, or something that can explain the best methodologies on this subject?

I found Similar question for Virtual Pet Games, but I am still intere开发者_如何学Csted in other suggestions.


Local notification will rely on the user's clock to be set accurately. You could compare the user's clock with a server time before delivering any rewards. If the user's clock is off by more than a few minutes, you could alert the user and not allow the reward until it is fixed.

0

精彩评论

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