Answer the question
In order to leave comments, you need to log in
Is it possible to create an object with random and encrypted coordinates in the game?
Is it possible in a 2D or 3D game to create an object of a known shape and color, but with random coordinates, so that the game itself does not know where this object is located? That is, that the coordinates of this object were encrypted, and they could not (very long and difficult) be calculated programmatically? But this object can be seen and identified (according to its 2D or 3D incarnation) by a person playing this game, and by some interaction with this object, transfer the coordinates of this object to the game.
If possible, in general theses, can you describe how to do this?)
Answer the question
In order to leave comments, you need to log in
but with random coordinates, so that the game itself does not know where this object isand
and some interaction with this object to transfer the coordinates of this object to the game.= empty set.
We have already written about the remote server. For local work, you will have to use some kind of protection system, such as StarForce, which is loved by players :)
Ie . the data will either not be on the player’s PC, or the data is inside an encrypted virtual machine where mom’s hackers won’t get into.
It is possible to hash them immediately after generating the coordinates and forget about them. After, when drawing in any coordinates, you also hash them and compare them with the existing values. If it matches, draw.
But there are problems here - it works only in limited cases such as a 2d grid, where you can go through all the cells for each frame and see if there is an object. Secondly, a hacker can still intercept the generation of coordinates or even reverse the hashing algorithm, extract hashes and brute force pick up coordinates with such hashes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question