A
A
alisey2012-08-14 17:35:53
Game development
alisey, 2012-08-14 17:35:53

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

2 answer(s)
S
SpiderMan, 2012-08-15
@SpiderMan

On the gamasutra website if you know English

S
sdevalex, 2012-08-14
@sdevalex

> 2 units may want to move to the same cell
Whoever runs first will take the cell.
> They need to find a way, plan actions, resolve collisions, draw themselves, that's all.
There are quite a few libraries for such a search, don't bother with it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question