M
M
Maxim2020-04-20 02:41:22
Algorithms
Maxim, 2020-04-20 02:41:22

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

3 answer(s)
X
xmoonlight, 2020-04-20
@xmoonlight

but with random coordinates, so that the game itself does not know where this object is
and
and some interaction with this object to transfer the coordinates of this object to the game.
= empty set.
There are many solutions:
1. Give the coordinates from the server at the right time.
2. At each displacement, solve a system of equations based on various factors and, if all coefficients match, "revive" the desired object.
Or harder:
Use the wave function.

M
maaGames, 2020-04-20
@maaGames

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.

W
Wataru, 2020-04-21
@wataru

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 question

Ask a Question

731 491 924 answers to any question