Answer the question
In order to leave comments, you need to log in
What to read about programming RTS-like games?
Interested in books, articles, sources in English or Russian.
There is a field divided into cells, there are units. They need to find a way, plan actions, resolve collisions, draw themselves, that's all.
As in any field, there are probably a lot of proven techniques in games. For example, right now the following question is of interest: 2 units may want to move to the same cell. Now, on every tick of game time, I ask all units to take turns in turn. Thus, one unit gains a stable advantage over the other in occupying cells, while the other gains an advantage in guessing actions.
How is this implemented in games? Do the units express their intent in some way, and in case of a conflict they resolve it randomly, and then the loser replans his strategy? Or is the unit queue shuffled each turn to prevent one of them from being given stable priority?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question