Y
Y
yiicoder2015-08-14 15:26:54
Game development
yiicoder, 2015-08-14 15:26:54

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

4 answer(s)
D
Daniil Basmanov, 2015-08-14
@yiicoder

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.

E
evnuh, 2015-08-14
@evnuh

Without the Internet - nothing

X
xmoonlight, 2015-08-14
@xmoonlight

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.

V
V Sh., 2015-08-14
@JuniorNoobie

And how do you connect timers with real time? There are not enough details for efficient (or not so) advice.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question