Answer the question
In order to leave comments, you need to log in
How to protect yourself from forward arrows on mobile devices?
The game has a lot of mechanics tied to timers. The game must be available offline.
Like when it's off!!! Internet on the device - protect yourself from moving the arrows of the device forward?
Answer the question
In order to leave comments, you need to log in
No way. Without a standard, you will not be able to distinguish the translation of the clock from the natural course of time. Let the cheater play offline as much as he wants, but during the next synchronization with the server, if you determine the fact of a clock change, you either completely roll back the game state to the one saved on the server, or withdraw individual rewards, it depends on the mechanics. You can simply assign the status of a cheater to the player and cut off all network interactions with other players, let him have fun as he wants, the main thing is not to interfere with others.
Starting internal timer - sets the server by the UUID of the device, encrypts it and puts it next to the application.
Keep your timer inside the application with the necessary timeline.
1 second has passed timer++
another one has passed timer++
The clock change here is not very helpful.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question